[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #45263] printf with %X is broken
From: |
Paul Mielke |
Subject: |
[Octave-bug-tracker] [bug #45263] printf with %X is broken |
Date: |
Sat, 06 Jun 2015 04:04:31 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 |
Follow-up Comment #1, bug #45263 (project octave):
The same error happens with %x as well. I have tested this with Octave 4.0.0
built from source on a Ubuntu 14.04 64bit system and see the same behavior
that Tom reports, so it is not specific to the Windows implementation.
Here are my results showing the difference between 3.8.1 (installed from the
Ubuntu distro) versus the 4.0.0 built from source:
Here is what happens on 3.8.1:
>> s = "123"
s = 123
>> sprintf("%X", s(1))
ans = 31
>> sprintf("%x", s(1))
ans = 31
>> version
ans = 3.8.1
>>
Now try this on 4.0.0:
octave:96> s = "123"
s = 123
octave:97> sprintf("%X", s(1))
ans = 49
octave:98> sprintf("%x", s(1))
ans = 49
octave:99> version
ans = 4.0.0
octave:100>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?45263>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #45263] printf with %X is broken, anonymous, 2015/06/05
- [Octave-bug-tracker] [bug #45263] printf with %X is broken,
Paul Mielke <=
- [Octave-bug-tracker] [bug #45263] printf with %X is broken, Doug Stewart, 2015/06/06
- [Octave-bug-tracker] [bug #45263] printf('%X', char(x)) returns x in decimal, Mike Miller, 2015/06/06
- [Octave-bug-tracker] [bug #45263] printf('%X', char(x)) returns x in decimal, anonymous, 2015/06/07
- [Octave-bug-tracker] [bug #45263] printf('%X', char(x)) returns x in decimal, Mike Miller, 2015/06/07
- [Octave-bug-tracker] [bug #45263] printf('%X', char(x)) returns x in decimal, Rik, 2015/06/08
- [Octave-bug-tracker] [bug #45263] printf('%X', char(x)) returns x in decimal, Paul Mielke, 2015/06/08
- [Octave-bug-tracker] [bug #45263] printf('%X', char(x)) returns x in decimal, John W. Eaton, 2015/06/08
- [Octave-bug-tracker] [bug #45263] printf('%X', char(x)) returns x in decimal, Rik, 2015/06/08
- [Octave-bug-tracker] [bug #45263] printf('%X', char(x)) returns x in decimal, John W. Eaton, 2015/06/08
- [Octave-bug-tracker] [bug #45263] printf('%X', char(x)) returns x in decimal, Mike Miller, 2015/06/09