Date: Wed, 10 May 2000 16:12:25 +0900 (JST) From: "Shin'ya Kumabuchi" <kumabu@t3.rim.or.jp> To: freebsd-java@freebsd.org Subject: file.encoding property (Re: Alpha JDK 1.2.2 patchset 7) Message-ID: <20000510161225-49143G.kumabu1@tahoe.yoko.ssl.fujitsu.co.jp> In-Reply-To: Your message of "Fri, 28 Apr 2000 15:45:58 %2B0930 (CST)" <200004280615.PAA97858@ares.trc.adelaide.edu.au> References: <200004280615.PAA97858@ares.trc.adelaide.edu.au>
next in thread | previous in thread | raw e-mail | index | archive | help
----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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000510161225-49143G.kumabu1>