Subject: Re: About testing locale set up.
To: None <firstname.lastname@example.org>
From: Geoff Wing <email@example.com>
Date: 04/07/2001 07:13:02
Rui-Xiang Guo <firstname.lastname@example.org> typed:
: On Fri, Apr 06, 2001 at 08:06:17PM +0200, Jaromír Dolecek wrote:
:> Rui-Xiang Guo wrote:
:> > Why "encoding" get the NULL string? It seems to our "langinfo.h" file not
:> > complete as Linux or FreeBSD? How to fix it?
:> IIRC, this was fixed recently, try to update libc to up-to-date one.
: I have already install the lastest libc but it still can't get the string.
: Anything I have lost? To install lastest XFree86?
I made a comment that you might need to upgrade xsrc. That's not
really true here. I had some memory of Xlocale.h trying to use it's
own setlocale() frontend but that's not true for our system. If you have
current headers, src/lib/libc and src/share/locale installed you
shouldn't have a problem. i.e. something like (with the first two maybe
% rm -rf /usr/share/locale/*.*
% mtree -u -p / -d -f /usr/src/etc/mtree/NetBSD.dist
% cd /usr/src; make includes
% cd /usr/src/lib/libc; make dependall install
% cd /usr/src/usr.bin/mklocale; make dependall install
% cd /usr/src/share/locale; make dependall install
The other benefit of now building xsrc is that setlocale() calls
within X will use the current setlocale (__setlocale_mb_len_max_32())
instead of the old setlocale and you won't get the warning:
warning: reference to compatibility setlocale(); .....
when you link against X11 :-)
Geoff Wing : <email@example.com>
Rxvt Stuff : <firstname.lastname@example.org>
Zsh Stuff : <email@example.com>