Subject: Re: About testing locale set up.
To: Geoff Wing <mason@primenet.com.au>
From: Rui-Xiang Guo <rxg@ms25.url.com.tw>
List: current-users
Date: 04/07/2001 15:39:07
> 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
> optional)
> 	% 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 :-)

It works! thanks!