Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Aug 2003 01:18:09 +0800
From:      "Kang Liu" <liukang@bjpu.edu.cn>
To:        <FreeBSD-gnats-submit@FreeBSD.org>
Cc:        freebsd-i18n@FreeBSD.org
Subject:   misc/55895: [patch]fix short weekday names in zh_CN.*
Message-ID:  <002901c3699a$8703a930$c6b696d3@ssc>
Resent-Message-ID: <200308231720.h7NHKCqe050400@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         55895
>Category:       misc
>Synopsis:       [patch]fix short weekday names in zh_CN.*
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Aug 23 10:20:11 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Kang Liu
>Release:        FreeBSD 5.1-CURRENT i386
>Organization:
Beijing University of Technology
>Environment:
System:5.1-CURRENT
>Description:
The short weekday names of zh_CN.eucCN and zh_CN.GB18030 is "$B<~0l(B $B<~Fs(B..." and so on.
It can not be displayed properly in some freebsd general commands.e.g. cal, ncal.
>How-To-Repeat:
setenv LC_ALL zh_CN.eucCN (or setenv LC_ALL zh_CN.GB18030)
#cal
     $BH,7n(B 2003
$B<~(B $B<~(B $B<~(B $B<~(B $B<~(B $B<~(B $B<~(B
                1  2
 3  4  5  6  7  8  9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31

In fact it should be:
     $BH,7n(B 2003
$BF|(B $B0l(B $BFs(B $B;0(B $B;M(B $B8^(B $BO;(B
                1  2
 3  4  5  6  7  8  9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31
>Fix:
--- src/share/timedef/zh_CN.GB18030.src.orig	Sun Aug 24 00:13:07 2003
+++ src/share/timedef/zh_CN.GB18030.src	Sun Aug 24 00:17:46 2003
@@ -35,13 +35,13 @@
 #
 # Short weekday names
 #
-$B<~F|(B
-$B<~0l(B
-$B<~Fs(B
-$B<~;0(B
-$B<~;M(B
-$B<~8^(B
-$B<~O;(B
+$BF|(B
+$B0l(B
+$BFs(B
+$B;0(B
+$B;M(B
+$B8^(B
+$BO;(B
 #
 # Long weekday names
 #
--- src/share/timedef/zh_CN.eucCN.src.orig	Sun Aug 24 00:13:15 2003
+++ src/share/timedef/zh_CN.eucCN.src	Sun Aug 24 00:19:27 2003
@@ -35,13 +35,13 @@
 #
 # Short weekday names
 #
-$B<~F|(B
-$B<~0l(B
-$B<~Fs(B
-$B<~;0(B
-$B<~;M(B
-$B<~8^(B
-$B<~O;(B
+$BF|(B
+$B0l(B
+$BFs(B
+$B;0(B
+$B;M(B
+$B8^(B
+$BO;(B
 #
 # Long weekday names
 #


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?002901c3699a$8703a930$c6b696d3>