From xemacs-m  Tue Jul 29 10:36:26 1997
Received: from ns.jsys.co.jp (ns.jsys.co.jp [202.33.240.82])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id KAA00923
	for <xemacs-beta@xemacs.org>; Tue, 29 Jul 1997 10:36:25 -0500 (CDT)
Received: from cosmos.jsys.co.jp (cosmos.jsys.co.jp [172.31.80.5])
	by ns.jsys.co.jp (8.8.6/8.8.6) with ESMTP id AAA10191;
	Wed, 30 Jul 1997 00:36:23 +0900 (JST)
Received: from skywalk.jsys.co.jp (j-04110.jsys.co.jp [172.31.49.72])
	by cosmos.jsys.co.jp (8.8.6/8.8.6/NOTES) with ESMTP id AAA26584;
	Wed, 30 Jul 1997 00:36:22 +0900 (JST)
Received: (from ienaga@localhost) by skywalk.jsys.co.jp (8.8.5/3.5Wpl2) id AAA14585; Wed, 30 Jul 1997 00:35:55 +0900 (JST)
To: Murata Shuuichirou <mrt@mickey.ai.kyutech.ac.jp>
Cc: xemacs-beta@xemacs.org
Subject: Re: "Berlin" success on FreeBSD 3.0
References: <19970729221635W.mrt@wine.mickey.ai.kyutech.ac.jp>
Mime-Version: 1.0 (generated by tm-edit 7.108)
Content-Type: multipart/mixed;
 boundary="Multipart_Wed_Jul_30_00:35:54_1997-1"
Content-Transfer-Encoding: 7bit
From: Kazuyuki IENAGA <ienaga@jsys.co.jp>
Date: 30 Jul 1997 00:35:54 +0900
In-Reply-To: Murata Shuuichirou's message of "Tue, 29 Jul 1997 22:16:35 +0900"
Message-ID: <ryslo2p6fc5.fsf@skywalk.jsys.co.jp>
Lines: 76
X-Mailer: Gnus v5.4.64/XEmacs 20.3(beta15) - "Berlin"
X-Face:  9{'tf33,11#K2A'RDL?p:oEk{~%v;iFL63&]_`FnV~q9]UoqU:"Z*;!l8*yw(91jLdj'8ca
 ~kD1b`lzQ>o[fU=>6g(Er\.fiQPm[~<w?Is+rkeQnV9B~6|>`*Nw1,kCrfo(IH??{i~'F


--Multipart_Wed_Jul_30_00:35:54_1997-1
Content-Type: text/plain; charset=US-ASCII

Murata Shuuichirou <mrt@mickey.ai.kyutech.ac.jp> writes:

> "Berlin" success on FreeBSD 3.0 with following patch:
> 
> --- src/s/freebsd.h.org	Sun Jul 27 07:10:20 1997
> +++ src/s/freebsd.h	Mon Jul 28 21:37:05 1997
> @@ -35,7 +35,7 @@
>  
>  /* Kludge to work around setlocale(LC_ALL,...) not working after 01/1997 */
>  #if __FreeBSD_version >= 199701
> -#include <X11/Xlocale.h>
> +/* #include <X11/Xlocale.h> */
>  #define setlocale(locale_category, locale_spec) setlocale(LC_CTYPE, locale_spec)
>  #endif
>  
> Why is there including of Xlocale.h?  This requires following line
> 
> env CPPFLAGS=-I/usr/X11R6/include ./configure ...

This will be fixed in next beta, probably.
Martin made a patch for this:

--Multipart_Wed_Jul_30_00:35:54_1997-1
Content-Type: application/octet-stream; type=patch
Content-Disposition: attachment; filename="freebsd.h.patch"
Content-Transfer-Encoding: 7bit

--- src/s/freebsd.h.old
+++ src/s/freebsd.h
@@ -35,8 +35,10 @@
 
 /* Kludge to work around setlocale(LC_ALL,...) not working after 01/1997 */
 #if __FreeBSD_version >= 199701
+#ifndef NOT_C_CODE
 #include <X11/Xlocale.h>
 #define setlocale(locale_category, locale_spec) setlocale(LC_CTYPE, locale_spec)
+#endif /* C code */
 #endif
 
 #define LIBS_TERMCAP "-ltermcap"


--Multipart_Wed_Jul_30_00:35:54_1997-1
Content-Type: text/plain; charset=US-ASCII


> and causes some errors at the end of configuring phase.
> In addition, it seems that current version of FreeBSD doesn't require
> setlocale macro. So condition line should be changed to:
> 
> #if (__FreeBSD_version >= 199701) && (__FreeBSD_version < 300000)

I confirmed Murata-san whether all enough categories were added for
FreeBSD 3.0 (known as current) or not.
And his answer was someone on his site made a trick like this:

    ln -s en_US.ISO_8859-1/LC_TIME ja_JP.EUC/LC_TIME

I also got that if the user set $LC_CTYPE as "ja_JP.EUC" then the
setlocale() will come up to.

The `current' version of FreeBSD only has LC_CTYPE and LC_COLLATE for
some locales.
Thus, the setlocale(LC_ALL, "") does not work correctly by *default*
for non-full-filled locales.
For the `current', its code and environment will be changed
unexpectedly, so that we have to be careful to correspond to the
version.

-- 
kazz

--Multipart_Wed_Jul_30_00:35:54_1997-1--

