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

Re: Anybody working on ISO/IEC 15435 (i18n.h)?



Kai Henningsen writes:

> Which reminds me I probably want to have some internal type in place of  
> wchar_t, in case someone wants to port to a compiler where wchar_t isn't  
> large enough to hold 31 bits. (I remember seeing sizeof(wchar_t)==2 once.)

On some systems you even have sizeof(wchar_t)==1. The people who designed
this decided that they didn't want internationalized programs on their
platform. Too bad for them.

I don't think it's worth doing special hacks for such stupidly designed
systems. Simply use 'wchar_t' as it is. In the short term, people on these
platforms can add #include <libutf8.h> to the source files, which redefines
the wchar_t type to something sane. In the long term, platforms with non-
Unicode wchar_t will disappear.

Bruno
-
Linux-UTF8:   i18n of Linux on all levels
Archive:      http://mail.nl.linux.org/lists/