From: SF/projects/mingw n. l. <min...@li...> - 2012-10-19 18:06:47
|
Bugs item #2700519, was opened at 2009-03-21 07:49 Message generated for change (Settings changed) made by earnie You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=2700519&group_id=2435 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: binutils Group: None >Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: kkez (kkez) Assigned to: Nobody/Anonymous (nobody) Summary: windres crash with #pragma codepage() Initial Comment: Windres can't compile correctly a utf-8 file with chinese, japanese or czech chars, even if i set the LANGUAGE properly (eg: LANGUAGE LANG_CHINESE). By correctly i mean that all i see are garbled chars. Trying to fix this issue, i added #pragma codepage(65001) which is the code page identifier for utf-8 (source: http://msdn.microsoft.com/en-us/library/dd317756(VS.85).aspx), and windres crashes. Do i need to convert the file to another charset and try another codepage? Example: #pragma code_page(950) LANGUAGE LANG_CHINESE, SUBLANG_DEFAULT STRINGTABLE BEGIN IDS_DLG_OK "确定" IDS_DLG_CANCEL "取消" IDS_DLG_APPLY "应用" IDS_DLG_DEFAULT "默认" END ---------------------------------------------------------------------- Comment By: Tom Bramer (tjbramer) Date: 2009-06-02 16:38 Message: Here's a bug report I submitted recently regarding this issue, including a patch that makes this work: http://sourceware.org/bugzilla/show_bug.cgi?id=10165 ---------------------------------------------------------------------- Comment By: kkez (kkez) Date: 2009-03-21 07:50 Message: sorry, replace #pragma code_page(950) with #pragma code_page(65001) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=2700519&group_id=2435 |