Web lists-archives.com

Re: [Mingw-users] putwchar not working




On 9 September 2016 at 00:17, Eli Zaretskii <eliz@xxxxxxx> wrote:
>> From: Yongwei Wu <wuyongwei@xxxxxxxxx>
>> Date: Thu, 8 Sep 2016 10:52:46 +0800
>>
>> > AFAIK, the only reliable way of writing non-ASCII text to the Windows
>> > console is by using WriteConsoleW.  Did you try that?
>>
>> I have many ways to work around the issue for myself. However, I do
>> not have time to fix all the applications that are compilable by
>> MinGW. The only practical solutions (though still difficult), IMHO,
>> are:
>>
>> * Make Microsoft fix the issue in MSVCRT
>> * Make MinGW not use MSVCRT for I/O functions
>
> My point is whatever you do, it won't solve the problem completely.
> Even if putwchar will eventually do what the MS VS static libraries
> do, some basic problem will remain.  For example, you cannot display
> anything with putwchar that is beyond the BMP, because a single
> wchar_t argument can only express characters in the BMP.  And that is
> only one of the fundamental problems with non-ASCII support on the
> Windows console.

Not supporting characters beyond the BMP does not look a big problem
to me. To me, the big problem is anything compiled by MinGW is broken
in non-ASCII support, and, in comparison, MSVC looks much better....

-- 
Yongwei Wu
URL: http://wyw.dcweb.cn/

------------------------------------------------------------------------------
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx

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@xxxxxxxxxxxxxxxxxxxxx?subject=unsubscribe