Re: Lower case to upper case german ess-zet
- From: "Luis Ramirez" <luisramirez22 gmail com>
- To: gtk-app-devel-list gnome org
- Subject: Re: Lower case to upper case german ess-zet
- Date: Thu, 13 Sep 2007 22:01:03 +0200
Thanks for your comments. I have entered the enclosed code in the begining
and I get:
Headers version: 2.12
Lib version: 2.12
I have compiled the code in GNU/Linux and in Windows XP with Mingw and I get
the same version 2.12, and the same results.
Which version do you have used?
Best regards
-------------------------------------------------------------------------------------------
gchar *strLower = "\xc3\x9f"; //"ß";
printf("\nHeaders version: %d.%d", GLIB_MAJOR_VERSION,
GLIB_MINOR_VERSION);
printf("\n Lib version: %d.%d", glib_major_version,
glib_minor_version);
-------------------------------------------------------------------------------------------
2007/9/11, David Nečas (Yeti) <yeti physics muni cz>:
On Tue, Sep 11, 2007 at 06:12:53PM +0000, Luis Ramirez wrote:
I have a problem converting german ess-zet ("ß") from lower to uppercase
when using g_unichar_toupper, but it works fine using g_utf8_strup.
Using g_unichar_toupper I get a 0 as result.
You should not, both according to my reading of GLib source
code and experiment. Since the uppercase is not
repesentable with a signle character, you should get the
input character back from g_unichar_toupper(), exactly as
the documentation states -- and this is also what I observe.
Here it is a sample. The output is:
Note embedding these things in mail makes them subject to
abritrary reencoding and can result in recipients trying
entirely different code if they are not very careful -- use
\xc3\x9f representation.
g_unichar_toupper. Lower:'ß', Upper:''
g_utf8_strup. Lower:'ß', Upper:'SS'
I get
g_unichar_toupper. Lower:'ß', Upper:'ß'
g_utf8_strup. Lower:'ß', Upper:'SS'
as expected. Perhaps a too old GLib?
Yeti
--
http://gwyddion.net/
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]