bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] mbrtowc: port better to narrow-wchar_t platforms


From: Bruno Haible
Subject: Re: [PATCH] mbrtowc: port better to narrow-wchar_t platforms
Date: Thu, 26 Dec 2019 11:19:44 +0100
User-agent: KMail/5.1.3 (Linux/4.4.0-170-generic; KDE/5.18.0; x86_64; ; )

Paul Eggert wrote:
> wchar_t is too narrow to represent all the Unicode characters,
> consider a byte sequence for an out-of-wchar_t-range character to
> be an encoding error.

Thanks. I had not thought about 16-bit wchar_t when writing this code.

For supporting full Unicode on AIX and Windows platform, we'll need
mbrtoc32() instead of mbrtowc(). It's on my TODO list to add this support
to gnulib.

Bruno




reply via email to

[Prev in Thread] Current Thread [Next in Thread]