Mailing List Archive

Support open source code!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tlug: Kinput2, canna, kterm and locales



>>>>> "Scott" == Scott Stone <sstone@example.com> writes:

    Scott> interesting, maybe your glibc wasn't compiled with the intl support... I
    Scott> don't recall having to do anything special to libc5, though, and I don't
    Scott> get any locale errors with it.  Something to watch out for with TurboLinux
    Scott> 1.9beta, I suppose.

Well, I just ran kterm with strace and found that its looking at:

/usr/X11R6/lib/X11/locale/locale.alias
/usr/X11R6/lib/X11/locale/locale.dir
/usr/X11R6/lib/X11/locale/C/XLC_LOCALE
/usr/share/locale/locale.alias

Then it warns:

Warning: locale not supported by...

Then continues on looking for various ja locales under
/usr/share/locale/, such as:

/usr/share/locale/ja_JP.eucJP/LC_CTYPE

and finally ends with a message:

Couldn\'t set locale: ja_JP.eucJP

Do you have under and ja* under /usr/share/locale or
/usr/share/i18n/locales ? I have many non-japanese ones, but nothing
with ja...

In my searches, I came accross this at: 
	http://www-jlc.kek.jp/~fujiik/mklinux/memo/diary.html

LD_PRELOAD="$JAVA_HOME/lib/${ARCH}/$THREADS_TYPE/liblocale.so" 

"The essential point of this japanization is to force HotJava to use
the setlocale function (which is actually _Xsetlocale) in liblocale.so
instead of that in /lib/libc.so.6 which is incapable of handling
two-byte character locales: The above LD_PRELOAD setting in
.java_wrapper forces java to load setlocale in liblocale.so first
thing in the loading."

So, it would appear that 1) I should not care what is under
/usr/share/locale, since I think this is where glibc searched, and 2)
I need to get kterm to use X's locale functions. However, when I tried

	nm -o *|grep -i XsetLocale 

in /usr/X11/lib, it only turned up XSetLocaleModifiers, which is
defined in libX11.a & .so.

Now I'm wondering if the problem isn't that the version of X11 I'm
using. Its XFree86 3.3.1, straight off the RH CD. I tried to install
the 3.3.2, but had all sorts of unresolved symbols, so I restored the
tar of /usr/X11R6 that I'd taken before the install. Both versions
though, seem to rely on glibc's setlocal, as it is undefined in all
the libs under X11/lib

Short of building X11, I'm not sure what to do next. There has to be a
better way. One last item, there is a lib called:

/lib/libBrokenLocale.so.1:00000440 T __ctype_get_mb_cur_max

I don't know what it does, so I'm grabbing the source for glibc...

Thanks,

	Andy
---------------------------------------------------------------
Next TLUG Meeting: 11 April Sat, Tokyo Station Yaesu gate 12:30
Featuring Tague Griffith of Netscape i18n talking on source code
---------------------------------------------------------------
a word from the sponsor:
TWICS - Japan's First Public-Access Internet System
www.twics.com  info@example.com  Tel:03-3351-5977  Fax:03-3353-6096



Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links