Re: Accented characters
- From: gtk uk2 net
- To: gtk-list gnome org
- Subject: Re: Accented characters
- Date: Fri, 24 Aug 2001 00:13:49 +0200 (CEST)
On 19 Aug, Owen Taylor wrote:
>
> gtk uk2 net writes:
>
>> On 16 Aug, Havoc Pennington wrote:
>> >
>> > gtk uk2 net writes:
>> >>
>> >> Last year I wrote a GTK based GUI to a database, linux 2.2.15 and GTK
>> >> 1.2.8. I tried to port the application to a new system, linux 2.4.2 xith
>> >> GTK 1.2.9 and all the labels that contain accented letters don't show,
>> >> all of it disappears, not just the guilty characters! Since the
>> >> application is in Spanish, this is of ctritical importance. Labels with
>> >> no special characters show up just fine.
>> >>
>> >> The guilty party is: gtk_label_new ("text that won't show, jéjé!!");
>> >> but
>> >> get-window_set_title (GTK_WIDGET(window), "text will show, jéjé!!");
>> >>
>> >> The file ./gtk+-1.2.9/NEWS states that one of the improvements is
>> >> "changes so that using fonts (as well as fontsets) for non-iso-8859-1
>> >> locales will work". By the way Spanish enters in 8859-1 and doesn't work
>> >> anymore. What do I do?
>> >>
>> >
>> > Is your locale properly set, or are you trying to use Latin-1 with the
>> > "C" locale?
>> >
>> > For example,
>> > LANG=es_ES appname
>> >
>> > or whatever.
>>
>> I do have a properly set locale. I even reinstalled the operating
>> system in Spanish, RedHat 7.1 allows that, not in polished translation
>> by the way, and running /usr/bin/locale gave the following output:
>
> Most likely, you arent' calling gtk_set_locale() at the beginning
> of your program. This call basically tells GTK+ and X to look
> for information about the current locale from the environment.
>
> Regards,
> Owen
>
That was it, calling gtk_set_locale(). with GTK-1.2.8 that was not
necessary, how was I supposed to find out? Anyway thanks a lot,
Henry
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]