Re: Some questions,

From: Date: Tue, 26 Feb 2002 15:11:14 +0000
Subject: Re: Some questions,
References: 1 2 3  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-1345@lists.php.net to get a copy of this message
Nikolajus, hi, If you set your locale to Lithuanian on your system using 'regional settings' (not via the program) there should be *some* things that work in PHP-GTK from 0.5.0, Frank was working on this after Christmas very quietly. GtkCalendar isn't one of them. In GtkText insert() works and insert_text() doesn't .... ----- Original Message ----- From: "Nikolajus Krauklis" <nikolajus@avc.lt> To: "Steph" <steph.fox@btinternet.com>; <php-gtk-general@lists.php.net> Sent: Tuesday, February 26, 2002 11:44 AM Subject: Re: [PHP-GTK] Some questions, > Hi Steph and php-gtk-general, > > someone said what all php-gtk programs uses UTF8, so i deside to try convert > my language characters to utf8 table chars > but nothing happens? > I know what baltic character 0xFE in utf8 table is 17d, so i do so: > $string = "\0x17d"; but i have no correct output :( > > for this moment we can't use lithuanian characters in php-gtk programs. > Maybe someone have an idea or advice? > > p.s. i am ISO-8859-13 or cp1257 locales so (utf8_encode() not working) > i spent with this problem very long time and can't find workaround or > problem solving > > i use php-gtk-0.1.1a-win32 , php -v > php4.0.8 > > Nikolajus Krauklis > > > Hi Nikolajus, > > > > When you said 'setlocale() not working', there are a few points to > consider (that I just bumped into today when I was looking at something > completely different). Okay, a lot of points. > > > > The first is probably that we already have gtk_set_locale() as part of the > GTK initialisation process in php_gtk+.c , which is why neither it nor > gdk_set_locale() are exposed functions. *You* don't set the locale, the > system does, and Andrei's automated the call. So really the question is, > how can you set your system to have a Lithuanian locale? > > > > The next is that setlocale() apparently shouldn't be called from within a > program that is statically linked to C run-time libraries under win32. This > may explain why, when gtk_set_locale() is called in the win32 version of > GTK+, what we actually end up calling is g_win32_getlocale(), which is a > GLib function which *eventually* returns the windows version of a locale's > language in the standard Unix format. >

« previous php.gtk.general (#1345) next »