From owner-FreeBSD-users-jp@jp.freebsd.org  Wed Jan 15 23:00:36 1997
Received: by jaz.jp.freebsd.org (8.8.4+2.7Wbeta4/8.7.3) id XAA16875
	Wed, 15 Jan 1997 23:00:36 +0900 (JST)
Received: by jaz.jp.freebsd.org (8.8.4+2.7Wbeta4/8.7.3) with ESMTP id XAA16868
	for <FreeBSD-users-jp@jp.freebsd.org>; Wed, 15 Jan 1997 23:00:15 +0900 (JST)
Received: from dns.hinet.net ([168.95.247.191]) by ms5.hinet.net (8.8.3/8.8.3) with SMTP id VAA22566 for <FreeBSD-users-jp@jp.freebsd.org>; Wed, 15 Jan 1997 21:54:38 +0800 (CST)
Date: Wed, 15 Jan 1997 21:54:38 +0800 (CST)
Message-Id: <199701151354.VAA22566@ms5.hinet.net>
To: FreeBSD-users-jp@jp.freebsd.org
From: =?ISO-2022-JP?B?GyRCREAbKEI=?= =?ISO-2022-JP?B?GyRCO1Y+TRsoQg==?= <ko0214@ms5.hinet.net>
In-Reply-To: <19970115201246M.ume@chaos.calm.imasy.or.jp>
References: <199701140804.RAA25041@sirius.sbl.cl.nec.co.jp> <19970115201246M.ume@chaos.calm.imasy.or.jp>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-2022-JP
Content-Transfer-Encoding: 7bit
X-Mailer: Becky! ver 1.12
Reply-To: FreeBSD-users-jp@jp.freebsd.org
X-Distribute: distribute [version 2.1 (Alpha) patchlevel=19]
X-Sequence: FreeBSD-users-jp 8611
Subject: [FreeBSD-users-jp 8611] Re: LC_TIME
Errors-To: owner-FreeBSD-users-jp@jp.freebsd.org
Sender: owner-FreeBSD-users-jp@jp.freebsd.org


$B$d$"!"(B
$BD@(B  $B;V>M$G$9!"(B
$B$*855$$G$9$+!)(B^_^

-----$B$3$NEE;R%a!<%k$N%G!<%?(B-----
$B:9=P?M(B : Hajimu UMEMOTO <ume@calm.imasy.or.jp>
$B08@h(B : FreeBSD-users-jp@jp.freebsd.org
$B7oL>(B : [FreeBSD-users-jp 8607] LC_TIME
$BAw?.F|;~(B : Wed, 15 Jan 1997 20:12:46 +0900
$B%a!<%k$N#I#D(B : <19970115201246M.ume@chaos.calm.imasy.or.jp>
------$B%G!<%?$,=*$o$j$^$7$?(B------

>   $BG_K\!wF|N)$G$9!#(B
> 
> # X_LOCALE $B$NOC$8$c$J$$$N$G!"(BSubject: $B$rJQ$($^$7$?!#(B

> -- >8 -- >8 -- >8 -- >8 -- >8 -- >8 -- >8 -- >8 -- >8 -- >8 --
> diff -ur org/usr.bin/cal/cal.c usr.bin/cal/cal.c
> --- org/usr.bin/cal/cal.c	Thu Jan 25 07:50:24 1996
> +++ usr.bin/cal/cal.c	Wed Jan 15 15:50:35 1997
> @@ -179,7 +179,10 @@
>  
>  	for (i = 0; i < 12; i++) {
>  		zero_tm.tm_mon = i;
> -		strftime(buf, sizeof(buf), "%B", &zero_tm);
> +		if ( strcmp(setlocale(LC_TIME, NULL), "ja_JP.EUC") == 0 )
> +			strftime(buf, sizeof(buf), "%b$B7n(B", &zero_tm);
> +		    else
> +			strftime(buf, sizeof(buf), "%B", &zero_tm);
>  		month_names[i] = strdup(buf);
>  	}
>  	for (i = 0; i < 7; i++) {
> @@ -213,7 +216,10 @@
>  	char *p, lineout[30];
>  
>  	day_array(month, year, days);
> -	len = sprintf(lineout, "%s %d", month_names[month - 1], year);
> +	if ( strcmp(setlocale(LC_TIME, NULL), "ja_JP.EUC") == 0 )
> +	    len = sprintf(lineout, "%d$BG/(B %s", year, month_names[month - 1]);
> +	else
> +	    len = sprintf(lineout, "%s %d", month_names[month - 1], year);
>  	(void)printf("%*s%s\n%s\n",
>  	    ((julian ? J_WEEK_LEN : WEEK_LEN) - len) / 2, "",
>  	    lineout, julian ? j_day_headings : day_headings);
> @@ -235,7 +241,10 @@
>  	int days[12][MAXDAYS];
>  	char *p, lineout[80];
>  
> -	(void)sprintf(lineout, "%d", year);
> +	if ( strcmp(setlocale(LC_TIME, NULL), "ja_JP.EUC") == 0 )
> +		(void)sprintf(lineout, "%d$BG/(B", year);
> +	    else
> +		(void)sprintf(lineout, "%d", year);
>  	center(lineout, J_WEEK_LEN * 2 + J_HEAD_SEP, 0);
>  	(void)printf("\n\n");
>  	for (i = 0; i < 12; i++)
> @@ -270,7 +279,10 @@
>  	int days[12][MAXDAYS];
>  	char *p, lineout[80];
>  
> -	(void)sprintf(lineout, "%d", year);
> +	if ( strcmp(setlocale(LC_TIME, NULL), "ja_JP.EUC") == 0 )
> +	    (void)sprintf(lineout, "%d$BG/(B", year);
> +	else
> +	    (void)sprintf(lineout, "%d", year);
>  	center(lineout, WEEK_LEN * 3 + HEAD_SEP * 2, 0);
>  	(void)printf("\n\n");
>  	for (i = 0; i < 12; i++)
> -- >8 -- >8 -- >8 -- >8 -- >8 -- >8 -- >8 -- >8 -- >8 -- >8 --

Can you tell me that,

How to updata those file ,

What is meaning that "+" & "-"$B!"(B"@@ -235,7 +241,10 @@"?
Thank you very much!
$B$"$j$,$H$&(B
$B65$($F(B $B$/$@$5$$!*(B

?
