[prev in list] [next in list] [prev in thread] [next in thread]
List: mingw-users
Subject: Re: [Mingw-users] support of multibyte and wide character
From: Yongwei Wu <wuyongwei () gmail ! com>
Date: 2014-10-07 9:39:22
Message-ID: CADs46if6hYV45eg-W2WntiGgc2=x27RcK5RgyuufddqPRfiPYw () mail ! gmail ! com
[Download RAW message or body]
On 4 October 2014 15:22, Eli Zaretskii <eliz@gnu.org> wrote:
> > From: マーズ <maazu@tharkus.dyndns.org>
> > Date: Sat, 04 Oct 2014 05:56:59 +0800
> >
> > Mingw only offer C-locale at the moment.
>
> That's definitely not true. See my response with information how to
> make that work. MinGW calls 'setlocale' in the Windows runtime, and
> that one supports much more than just the "C" locale.
Sadly, this is true. The reason is that MinGW relies on the "obsolete"
C runtime MSVCRT.dll, which is terribly broken regarding multi-byte
support. Heck, I cannot even output a Chinese character by the
wide-char version putwc, and putc is broken too.
An old discussion is here:
http://ehc.ac/p/mingw/mailman/mingw-users/thread/loom.20131001T202545-134%40post.gmane.org/
The same program can work well on Windows XP by any compiler, but only
works if compiled with a runtime that is not MSVCRT.dll--i.e., static
runtime by MSVC 6 or later, or dynamic runtime by MSVC 7+. MinGW only
uses MSVCRT.dll, and the resulting binary cannot output multi-byte
characters reliably on Windows versions later than Vista.
--
Wu Yongwei
URL: http://wyw.dcweb.cn/
------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
MinGW-users mailing list
MinGW-users@lists.sourceforge.net
This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same. Disregard for the list etiquette may \
cause your account to be moderated.
_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@lists.sourceforge.net?subject=unsubscribe
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic