Re: Unicode and C++
- From: Adrian Havill <havill turbolinux co jp>
- To: gtk-i18n-list gnome org
- Subject: Re: Unicode and C++
- Date: Tue, 04 Jul 2000 13:49:23 +0900
Nathan Myers wrote:
> There is no problem with wide character string literals in C or C++,
> and hasn't been for a very long time. Simply prefix with a letter 'L'.
>
> wchar_t hello = L"hello, world";
Too bad this doesn't actually work yet with the current glibc/gcc for
non-trivial examples, such as Japanese/Chinese, etc. Plus, until glibc 2.2
comes out, the wide character C support functions (of what exists) are also
busted for non-trivial languages.
Which brings up another point for making wide character versions of the GTK
API... once glibc 2.2 is commonplace, it would be a waste to have that
working wide character functionality and then be discouraged from using it
because you'd have to convert all your internal strings from wide form to
UTF-8 for every GTK call.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]