在2010/12/20, "Zou Hu" <[email protected]> 写道: Hi, normally for cjk operating system filenames use double-byte encoding on Windows, and double- byte or utf-8 encoding on Linux. Therefore we need to change encoding before opening file and this is done in modification for qt_chooser_dialog.cppBut if we just do this, the window title and goto menu would show wrong strings for cjk filenames. therefore I make some modification for tm_data.cpp. Unfortunately there is no iconv on Windows, therefore I have to use some qt functions. It's no the best choice, maybe you would improve it. Best. 在2010/12/20, "Gubinelli Massimiliano" <[email protected]> 写道: Hi, thanks for the patch. Could you explain it to me? why we need the call to Local8Bit? What is the difference between Ubuntu and Windows behaviors. Note that it is not appropriate to add dependency on Qt in TeXmacs internals so your patch of src/Texmacs/Data/tm_data.cpp needs some modifications.
best max On 20 déc. 2010, at 12:37, Zou Hu wrote: Hi all, I have improved the patch for Linux system; please see the attachment for the updated patch file. Best At 2010-12-20,"Zou Hu" <[email protected]> wrote: Hi developers, I have fixed these two bugs. Please see the attachment for the patch file. Best wishes. At 2010-12-19,Zou Hu wrote: Hi developers, when the file name includes some CJK characters, I could correctly open it on Ubuntu Linux, but the title bar of texmacs main window show the file name with corrupted string. Furthermore, I could not open any file with CJK name on Windows. Best. <filename.patch>_______________________________________________ Texmacs-dev mailing list [email protected] http://lists.gnu.org/mailman/listinfo/texmacs-dev
_______________________________________________ Texmacs-dev mailing list [email protected] http://lists.gnu.org/mailman/listinfo/texmacs-dev
