From owner-freebsd-java Wed Apr 26 17:51:20 2000 Delivered-To: freebsd-java@freebsd.org Received: from tohokugw.tohoku.iij.ad.jp (tohokugw.tohoku.iij.ad.jp [202.232.14.98]) by hub.freebsd.org (Postfix) with ESMTP id 1D3AF37B6DE for ; Wed, 26 Apr 2000 17:51:17 -0700 (PDT) (envelope-from taguchi@tohoku.iij.ad.jp) Received: by tohokugw.tohoku.iij.ad.jp; id JAA06096; Thu, 27 Apr 2000 09:51:15 +0900 (JST) From: Received: from hirose.tohoku.iij.ad.jp(192.168.144.2) by tohokugw.tohoku.iij.ad.jp via smap (V4.2) id xma006092; Thu, 27 Apr 00 09:51:03 +0900 Received: from hirose.tohoku.iij.ad.jp (localhost [127.0.0.1]) by hirose.tohoku.iij.ad.jp (8.9.3/3.7W99113014) with ESMTP id JAA41319; Thu, 27 Apr 2000 09:50:05 +0900 (JST) Date: Thu, 27 Apr 2000 09:50:04 +0900 Message-ID: To: glewis@trc.adelaide.edu.au Cc: freebsd-java@FreeBSD.ORG Subject: Re: Pre-alpha JDK 1.2.2 TimeZone (time) bug fixed! In-Reply-To: In your message of "Thu, 27 Apr 2000 07:41:37 +0930 (CST)" <200004262211.HAA14431@ares.trc.adelaide.edu.au> References: <200004262211.HAA14431@ares.trc.adelaide.edu.au> User-Agent: Wanderlust/2.2.12 (Joyride) EMIKO/1.13.9 (Euglena tripteris) FLIM/1.13.2 (Kasanui) Emacs/20.6 (i386--freebsd) MULE/4.0 (HANANOEN) MIME-Version: 1.0 (generated by EMIKO 1.13.9 - "Euglena tripteris") Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, Greg. > > src/freebsd/native/java/lang/java_props_md.c uses setlocale(3). > > So I think it's better that linling libxpg4. > > > > makefiles/Defs-freebsd.gmk > > LDLIBS_COMMON = -lhpi$(SUFFIX) $(JVMLIB) -lgcc -lxpg4 -lc > > ^^^^^^ add this. > > Thanks. > > Taguchi,T. > > I must admit to not being very familiar with setlocale. Could you please > elaborate as to why the version in libxpg4 is preferred? In /usr/share/locale, there are many locale data. And libc includes setlocale(3). So many people think that we can use many many locales under the /usr/share/locale/. But this is incorrect. Actuary, setlocale(3) in libc supports very few locales, such as default C, ,iso-8859-*, and so on. Asian locales, such as ja,kr, and chinese locales are NOT supported! To support all locales under /usr/share/locale/, we must link libxgp4. So current XFree86 applications link xpg4 defaultly. See /usr/X11R6/lib/X11/config/FreeBSD.cf. Thanks. PS: My modification is not tested yet. Because I'm using FreeBSD-4.0-stable. Compilation was OK. But I can not test locale related features. Taguchi,T. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message