Mailing List ArchiveSupport open source code!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: locale
- To: tlug@example.com
- Subject: Re: locale
- From: Mike Fabian <mfabian@example.com>
- Date: 02 Jan 2001 21:24:00 +0100
- Cc: davidgn@example.com, B0Ti <9915104t@example.com>
- Content-Type: multipart/mixed; boundary="=-=-="
- In-Reply-To: David Eduardo Gomez Noguera's message of "Sat, 23 Dec 2000 18:40:02 -0600"
- References: <20001223100747.1470a433.davidgn@example.com><4.2.0.58.J.20001224001250.02a6cf18@example.com><20001223184002.6267d591.davidgn@example.com>
- Reply-To: mfabian@example.com
- Resent-From: tlug@example.com
- Resent-Message-ID: <ILsU0.A.5DG.mjjU6@example.com>
- Resent-Sender: tlug-request@example.com
- Sender: mfabian@example.com
- User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Channel Islands)
David Eduardo Gomez Noguera <davidgn@example.com> writes: > I though the locales were my problem. but it seems it isnt. I read > questionmark's where i should read kanji. Any idea? It happens both > in a x-terminal and in gjiten (in the preferences and the kanji info > window). > > when i use cat or more to browse through ls or the sources of > gjiten, everything seems ok. This seems to be a problem of gjiten, triggered by Glibc 2.2. Glibc 2.2 seems to be pickier in some respects, so some things which were incorrect but nevertheless worked with previous versions of Glibc stopped working with Glibc 2.2. Try the following tiny patch to gjiten-0.7:--- gjiten-0.7/src/gjiten.c.orig Tue Jan 2 19:24:05 2001 +++ gjiten-0.7/src/gjiten.c Tue Jan 2 20:12:23 2001 @@ -1363,13 +1363,13 @@ int main (int argc, char *argv[]) { - #ifdef ENABLE_NLS - bindtextdomain (PACKAGE, PACKAGE_LOCALE_DIR); - textdomain (PACKAGE); -#endif set_strginfo(); gtk_set_locale (); +#ifdef ENABLE_NLS + bindtextdomain (PACKAGE, PACKAGE_LOCALE_DIR); + textdomain (PACKAGE); +#endif if (getenv("LC_ALL") == NULL) putenv("LC_ALL=ja_JP"); else if (getenv("LC_ALL")[0] != 'j') putenv("LC_ALL=ja_JP");I just moved the calls to bindtextdomain() and textdomain() behind the gtk_set_locale() call, because the info pages of gettext contain: info-gettext> The initialization of locale data should be done with more or less info-gettext> the same code in every program, as demonstrated below: info-gettext> info-gettext> int info-gettext> main (argc, argv) info-gettext> int argc; info-gettext> char argv; info-gettext> { info-gettext> ... info-gettext> setlocale (LC_ALL, ""); info-gettext> bindtextdomain (PACKAGE, LOCALEDIR); info-gettext> textdomain (PACKAGE); info-gettext> ... info-gettext> } I think the gtk_set_locale() function contains a call to setlocale(), therefore it is probably enough to move bindtextdomain() and textdomain() behind get_set_locale(). At least it works for me like that. -- Mike Fabian <mfabian@example.com>
Home | Main Index | Thread Index
- Prev by Date: Re: display of jp fonts bunged by installing atokx
- Next by Date: Releases in theory and practice
- Prev by thread: Re: locale
- Next by thread: Re: display of jp fonts bunged by installing atokx
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links