octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #39775] Consistent treatment of octal and hexa


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #39775] Consistent treatment of octal and hexadecimal escape sequences in double-quoted strings
Date: Wed, 14 Aug 2013 14:36:29 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20100101 Firefox/10.0.12 Iceweasel/10.0.12

Follow-up Comment #10, bug #39775 (project octave):

It appears that Matlab does not limit to two, but does warn if the result is
outside the range of possible character values (and then proceeds to fail to
perform any conversion at all).  How about doing that?

Here's a test you can try:


abs (sprintf ('\x00absolutely'))
abs (sprintf ('\x00abcsolutely'))
abs (sprintf ('\x00abcdsolutely'))
abs (sprintf ('\x00abcdesolutely'))


Note that leading zeros are allowed, so it is not just about counting digits
and limiting them to 2, 4, or whatever.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?39775>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]