This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: bug#7948: 16-bit wchar_t on Windows and Cygwin
- From: Andy Koppe <andy dot koppe at gmail dot com>
- To: cygwin at cygwin dot com
- Cc: Paul Eggert <eggert at cs dot ucla dot edu>, Eric Blake <eblake at redhat dot com>, bug-gnulib at gnu dot org, bug-coreutils <bug-coreutils at gnu dot org>
- Date: Wed, 2 Feb 2011 20:43:17 +0000
- Subject: Re: bug#7948: 16-bit wchar_t on Windows and Cygwin
- References: <201101310304.42975.bruno@clisp.org> <201102021229.04623.bruno@clisp.org> <4D4999BA.2030100@cs.ucla.edu> <201102021957.07676.bruno@clisp.org>
On 2 February 2011 18:57, Bruno Haible wrote:
> Hi Paul,
>
>> > Â - Define a type 'wwchar_t' on all platforms, equivalent to uint32_t
>> > Â Â on Windows platforms and to 'wchar_t' otherwise.
>>
>> As a minor point, would it be OK to call this type
>> 'xchar_t' instead? Â'x' is the successor to 'w', after all,
>> and it can be thought of as an abbreviation for 'eXtended'.
>
> 'wwchar_t' means "wide wide character".
>
> In fact it's not really an "extended" character or "complex character".
> It's just what POSIX calls a 'wchar_t'.
It's extended in the sense that the original Unicode was only 16 bits
wide (which of course is why wchar_t on Windows is 16 bits). Also, I
think 'xchar_t' is less prone to typos, in particular forgetting one
of the dubyas.
Andy
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple