[Top][All Lists]

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

[Octave-bug-tracker] [bug #59065] Newline in first argument of input() i

From: Guillaume
Subject: [Octave-bug-tracker] [bug #59065] Newline in first argument of input() is not processed with single-quoted strings
Date: Sat, 5 Sep 2020 11:56:52 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0

Follow-up Comment #3, bug #59065 (project octave):

Thanks for the feedbacks. input() is probably one of the very old Matlab
functions so this might explain its slightly peculiar behavior. It does indeed
only handle newlines ('\n' -> "\n", '\\' -> '\', '\?' -> '?').

Using a more generic do_string_escapes might be the solution but it might make
this function slower, which might be a problem if it's a widely called one? I
therefore wonder if input() could just call the existing do_string_escapes()
and process all escape characters - I would see this behavior as an extension
rather than a compatibility issue with Matlab, given that it's probably better
to process all escape characters than none.


Reply to this item at:


  Message sent via Savannah

reply via email to

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