<div dir="ltr">Hi, all :<br><br>In recent SVN trunk, I found a new files windows_tools*\charEncodings.c that have functions for encoding convert and this is conflicted with function in file locazilation*\localetoutf.c . Function ANSIToUTF8 (defined in charEncodings.c ) is used in printf_scilab :<br>
<br><br>-----------------------sciprint.c---------------------------------------<br>void printf_scilab(char *buffer,BOOL withDiary)<br>{<br> if (buffer)<br> {<br> if (getScilabMode() == SCILAB_STD)<br> {<br>
#ifdef _MSC_VER<br> {<br> char *UTF8Buffer = ANSIToUTF8(buffer);//<-------- <br> if (UTF8Buffer)<br> {<br> ConsolePrintf(UTF8Buffer); //<------------------------- call localeToUTF inside ConsolePrintf<br>
FREE(UTF8Buffer);<br> }<br>-------------------------------------------------------------------------------<br><br>On my machine (WINDOW/XP,CP950) , conversion to UTF strings is thus performed twice, and this make console fail to display chinese again.<br>
<br>I think functions in files 'charEncodings.c' and 'localetoutf.c' should merged and the encoding transformation need some agreements between developers.<br><br>YungLee<br><br><br></div>