Re: glib-2.2.1: g_print() with UTF-8 characters
- From: Ulf Karlsson <ulfc kortedala phetto com>
- To: Owen Taylor <otaylor redhat com>
- Cc: gtk-list gnome org
- Subject: Re: glib-2.2.1: g_print() with UTF-8 characters
- Date: Wed, 5 Mar 2003 06:41:30 +0100
Hi,
Thanks for your suggestions.
> Notes here:
>
> - Glibc has a "feature" where %Ns actually checks for a whole
> number of characters in the current encoding. So, unless you
> are sure you are always going to be in an UTF-8 locale, avoid
> using %Ns. (You are basically OK for iso-8859-1, but will
> have problems in say, a Japanese locale.)
It would make sense for g_print() to interpret %Ns correcly since it
assumes that the strings passed to it always are encoded in UTF-8. If
I could tell glibc that all strings passed to it will be encoded in
UTF-8 no matter what the current locale is, then that would solve my
problems.
Ulf
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]