Re: [dev] [st] wide characters

From: Troels Henriksen <athas_AT_sigkill.dk>
Date: Sun, 14 Apr 2013 13:18:50 +0200

Random832 <random832_AT_fastmail.us> writes:

> On 04/13/2013 07:07 PM, Aurélien Aptel wrote:
>> The ISO/IEC 10646:2003 Unicode standard 4.0 says that:
>>
>> "The width of wchar_t is compiler-specific and can be as small as
>> 8 bits. Consequently, programs that need to be portable across any C
>> or C++ compiler should not use wchar_t for storing Unicode text. The
>> wchar_t type is intended for storing compiler-defined wide characters,
>> which may be Unicode characters in some compilers."
>>
>> utf-8 is rather straightforward to handle and process.
>>
> Okay, but why not work with a unicode code point as an int?

That would not be UTF-8, but UCS-4. I don't think Xlib can handle that
natively.

-- 
\  Troels
/\ Henriksen
Received on Sun Apr 14 2013 - 13:18:50 CEST

This archive was generated by hypermail 2.3.0 : Sun Apr 14 2013 - 13:24:04 CEST