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: Mike Miller
Subject: [Octave-bug-tracker] [bug #39775] Consistent treatment of octal and hexadecimal escape sequences in double-quoted strings
Date: Wed, 14 Aug 2013 14:19:52 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.95 Safari/537.36

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

For now, yes, because that's exactly how a C parser would also treat those
strings. I'm thinking about it and I may change my mind. The Perl and Python
parsers limit to 2 hex characters.

If we do support wide characters some day, what would be the proper escape
sequence to produce one character if \\x were to only allow two characters?

Depending on how my companion bug #39774 turns out, we may want to limit to 2
for compatibility reasons. I don't know yet how Matlab's fprintf behaves with
\\o and \\x, but if it strictly limits the number of characters, we may want
to do the same for double-quoted strings just so the same string parses the
same way whether it's single- or double-quoted.

    _______________________________________________________

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]