|Subject:||Re:Re: [Texmacs-dev] bug with file names with CJK characters|
|Date:||Mon, 20 Dec 2010 23:52:00 +0800 (CST)|
在2010/12/20， "Zou Hu" <address@hidden> 写道：
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" <address@hidden> 写道：
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.
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
|[Prev in Thread]||Current Thread||[Next in Thread]|