From owner-freebsd-java Wed May 10 0:11:19 2000 Delivered-To: freebsd-java@freebsd.org Received: from fgwmail6.fujitsu.co.jp (fgwmail6.fujitsu.co.jp [192.51.44.36]) by hub.freebsd.org (Postfix) with ESMTP id 58A2E37B5CB for <freebsd-java@freebsd.org>; Wed, 10 May 2000 00:11:15 -0700 (PDT) (envelope-from kumabu1@yoko.ssl.fujitsu.co.jp) Received: from m4.gw.fujitsu.co.jp by fgwmail6.fujitsu.co.jp (8.9.3/3.7W-MX0002-Fujitsu Gateway) id QAA04091 for <freebsd-java@freebsd.org>; Wed, 10 May 2000 16:11:14 +0900 (JST) (envelope-from kumabu1@yoko.ssl.fujitsu.co.jp) Received: from stork.ssl.fujitsu.co.jp by m4.gw.fujitsu.co.jp (8.9.3/3.7W-0003-Fujitsu Domain Master) id QAA07667; Wed, 10 May 2000 16:11:12 +0900 (JST) Received: from moscow.yoko.ssl.fujitsu.co.jp by stork.ssl.fujitsu.co.jp (8.9.1/3.7W03/07/00) id QAA24205 for <freebsd-java@freebsd.org>; Wed, 10 May 2000 16:11:11 +0900 (JST) Received: from tahoe.yoko.ssl.fujitsu.co.jp (tahoe.yoko.ssl.fujitsu.co.jp [10.36.224.51]) by moscow.yoko.ssl.fujitsu.co.jp (8.9.3/3.7W) with ESMTP id QAA19768 for <freebsd-java@freebsd.org>; Wed, 10 May 2000 16:11:11 +0900 (JST) Received: from localhost (localhost [127.0.0.1]) by tahoe.yoko.ssl.fujitsu.co.jp (8.9.3/3.6W-07/07/98) with ESMTP id QAA49145 for <freebsd-java@freebsd.org>; Wed, 10 May 2000 16:12:25 +0900 (JST) Date: Wed, 10 May 2000 16:12:25 +0900 (JST) To: freebsd-java@freebsd.org Subject: file.encoding property (Re: Alpha JDK 1.2.2 patchset 7) From: "Shin'ya Kumabuchi" <kumabu@t3.rim.or.jp> In-Reply-To: Your message of "Fri, 28 Apr 2000 15:45:58 +0930 (CST)" <200004280615.PAA97858@ares.trc.adelaide.edu.au> References: <200004280615.PAA97858@ares.trc.adelaide.edu.au> X-Mailer: Mew version 1.93 on Emacs 20.5 / Mule 4.0 (HANANOEN) Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="--Next_Part(Wed_May_10_16:11:24_2000_518)--" Content-Transfer-Encoding: 7bit Message-Id: <20000510161225-49143G.kumabu1@tahoe.yoko.ssl.fujitsu.co.jp> X-Dispatcher: imput version 980905(IM100) Lines: 68 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org ----Next_Part(Wed_May_10_16:11:24_2000_518)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi. # I'm sorry for my poor English. There's no setup code for file.encoding property (because of insufficient i18n support in FreeBSD??). So I wrote ad-hoc patch for file.encoding, but this seems not to be smart :-( How about jdk1.1.8? # in runtime, need symlink to existing i18n.jar(e.g. blackdown's # jdk1.2.2 port), since it seems there's no i18n classes in # jdk1_2_2-src.tar.gz. Additionally, linking libxpg4.so into libjava.so seems not to take effect for me. (i.e. I must type `env LD_PRELOAD=/usr/lib/libxpg4.so /somewhere/bin/java ...') So I fixed build/freebsd/makefiles/Defs-freebsd.gmk too. Thanks. ----Next_Part(Wed_May_10_16:11:24_2000_518)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=java_props_md.c.patch --- src/freebsd/native/java/lang/java_props_md.c.~1~ Tue May 9 16:03:52 2000 +++ src/freebsd/native/java/lang/java_props_md.c Tue May 9 23:34:01 2000 @@ -241,7 +241,16 @@ * CharacterEncoding.java. */ #ifdef __FreeBSD__ - p = ""; + if (encoding) { + std_encoding = encoding; + if (!strcmp(encoding, "EUC") && std_region) { + sprintf(encoding_variant, "%s_%s", encoding, std_region); + std_encoding = encoding_variant; + } + p = strdup(std_encoding); + } else { + p = ""; + } #else p = nl_langinfo(CODESET); #endif ----Next_Part(Wed_May_10_16:11:24_2000_518)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=Defs-freebsd.gmk.patch --- build/freebsd/makefiles/Defs-freebsd.gmk.bak Tue May 9 16:02:36 2000 +++ build/freebsd/makefiles/Defs-freebsd.gmk Wed May 10 14:52:18 2000 @@ -163,7 +163,7 @@ # - libjvm is required for JNI # ifdef PROGRAM - LDLIBS_COMMON = -lhpi$(SUFFIX) $(JVMLIB) -lgcc -lc + LDLIBS_COMMON = -lhpi$(SUFFIX) $(JVMLIB) -lxpg4 -lgcc -lc endif # ----Next_Part(Wed_May_10_16:11:24_2000_518)---- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message