#119 Windows mangles strings with "\r"

closed
nobody
None
5
2005-02-23
2005-02-08
Samit Basu
No

display of strings with "\r"s in them on windows causes
incorrect behavior - the "\r" in a filename, e.g.,
"C:\FreeMat\Recon" is interpreted as a CR.

Discussion

  • Samit Basu

    Samit Basu - 2005-02-23

    Logged In: YES
    user_id=878533

    I think one solution is the following:
    1. Turn off escape translation for \r, \n, \t in the lexical analyzer
    2. Turn off escape translation for outputmessage
    3. Add an outputmessagexlate that does escape translation
    4. For printf, use outputmessagexlate.
    5. In system related functions, add escape translation.

     
  • Samit Basu

    Samit Basu - 2005-02-23
    • status: open --> closed
     

Log in to post a comment.