From: SourceForge.net <no...@so...> - 2012-02-03 09:32:02
|
Bugs item #3483424, was opened at 2012-02-02 18:46 Message generated for change (Comment added) made by sebres You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=3483424&group_id=10894 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: LIYA (liyajoseph) Assigned to: Nobody/Anonymous (nobody) Summary: Tcl_EvalEx function not detecting "\n" in Windows. Initial Comment: Hi, I am using TCL version 8.4.19 on a 64 bit Windows machine. In my C++ code I am calling Tcl_EvalEx () and passing a string argument like "hi\nbye\nbye_again". But after evaluation the string is printed as "hi(some special character)bye(some specialcharacter)bye_again". Even I tried with "hi\\nbye\\nbye_again, then output is "hi\nbye\nbye_again" with "hi\\r\\nbye\\r\\nbye_again" , then the output is "hi\r\nbye\r\nbye_again". The expected output is : hi bye bye_again Could you please help? ---------------------------------------------------------------------- Comment By: sebres (sebres) Date: 2012-02-03 01:32 Message: On windows should you intrinsically use a pair "\r\n" (CRNL) instead of "\n" (NL, unix) for really new line... What do you mean by output? stdout? if yes - you can configure you stdout channel to translation auto - it will accept both. ## get a current translation : fconfigure stdout -translation ## set a translation to auto : fconfigure stdout -translation auto ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=3483424&group_id=10894 |