Re: Some questions,
| From: | Steph | Date: | Fri, 15 Feb 2002 20:16:08 +0000 |
| Subject: | Re: Some questions, | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-1261@lists.php.net to get a copy of this message | ||
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.
The windows version of setlocale apparently has the format 'English_United States.1252' -
I haven't seen this format described anywhere fully yet, but following a happy afternoon's
grepping I now know I have some information matching that content at least, in the file
C:\WINDOWS\SYSTEM.CB (on win98). This is where my detective work breaks down, because I then went
to try to change my settings to German - okay on the 'Regional Settings' which covers most
of the system's locale setting, less useful on the more important 'Keyboard/Language'
setting, which demands a CD-ROM I haven't got. I want to know whether that SYSTEM.CB file
changes its content following a language and regional settings change and subsequent reboot, because
I believe it's where GLib picks up locale information.
The next consideration is how well different codesets are dealt with in the version of GDK/win32
we're using here, which is pretty old now. & basically they aren't. ISO-8859-2 as far
as I can work out is always treated as UTF-8, and there doesn't appear to be any real multibyte
support in place, as the structures for providing it were just arriving on the scene back then.
I'm guessing wildly that you may have to load UTF-8 fonts, but this really *is* a wild guess.
These issues don't appear to exist in *nix at all.
Pango, TreeView, TextView - that'll depend on whether Andrei has the energy & enthusiasm to
write PHP-GTK 2 after GTK 2.0 is finally released and proven stable. The GTK team are very close to
their deadline for the release part of that equation.
GtkHTML I'm sure will happen for win32 eventually because so many people want it - it's
just a case of when.
Sorry you didn't get an answer straight off, it's all a bit of a murky area as you may
have gathered.
- Steph
----- Original Message -----
From: "Nikolajus Krauklis" <nikolajus@avc.lt>
To: <php-gtk-general@lists.php.net>
Sent: Tuesday, January 29, 2002 9:11 AM
Subject: [PHP-GTK] Some questions,
> Hellow everyone,
>
> 1. how can i use characters of my language in gtk programs under windows.
> I don't know why but setlocale() not wirking :/ so i can't write baltic
> characters
> in my programs [under windows platform]
>
> 2. will be in the future Pango, GtkTextView (replaces of GtkCList and
> GtkCTree),
> GtkTreeView (replaces of GtkText widget) support in php gtk?
>
> 3. will be in the future such widgets like GtkHTML support in windows
> platform?
>
> Thanks 2 all for answers
>
> --Nikola
>
>
>
>
> --
> PHP-GTK General Mailing List (http://gtk.php.net/)
> To unsubscribe, e-mail: php-gtk-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-gtk-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>