From: Yongwei Wu <wuy...@gm...> - 2013-10-08 02:30:45
|
Hi Eli, On 4 October 2013 22:05, Eli Zaretskii <el...@gn...> wrote: >> Date: Fri, 4 Oct 2013 21:22:42 +0800 >> From: Yongwei Wu <wuy...@gm...> >> >> I think you missed my point. Being a Chinese and a programmer, I have >> no problems making Chinese work. The biggest problem now is that >> putchar may NOT be used successfully for multibyte characters with the >> msvcrt.dll shipped with Windows 7. Because of this, GCC did NOT work >> well in Chinese locales. The putchar problem is a runtime-specific >> problem, as Windows XP did not have this problem, and test executables >> generated by MSVC 7.1 and 11 on Windows 7 do not have this problem >> either (they do not use msvcrt.dll). >> >> Luckily the latest MinGW GCC 4.8 seems not localized and thus no >> longer suffers from the problem itself. Executables built by it still >> do, if they use putchar for multibyte characters.... > > If you have problems with localized programs, just rename or remove > the *.po files that correspond to your locale, and Bob's your uncle. I normally just set LANG=en. > Btw, could you elaborate on the problem? According to my reading of > MSDN, putchar is well equipped to handle multibyte characters, so I'm > not sure I understand the problem you have on Windows 7. You can find the archived discussion here: http://mingw.5.n7.nabble.com/MinGW-and-Non-English-Locale-on-Windows-7-td2393.html MSDN can say it is right, as current Microsoft compilers all work well with their own putchar implementations. The problem only occurs with the msvcrt.dll shipped with Windows 7, which, unfortunately, MinGW has to use on such platforms. -- Wu Yongwei URL: http://wyw.dcweb.cn/ |