svn commit: r342633 - head/share/timedef

Xin LI delphij at FreeBSD.org
Sun Dec 30 23:04:04 UTC 2018


Author: delphij
Date: Sun Dec 30 23:04:02 2018
New Revision: 342633
URL: https://svnweb.freebsd.org/changeset/base/342633

Log:
  Fix various issues with Chinese locales:
  
   - Change short weekday names to use only one Chinese character.
     (note: this is a somewhat misunfortunate compromise due to the fact
     that some applications are using short buffer for weekday names,
     and in ~1905 when 星期 system was created to replace the traditional
     七曜 system, which can use 日月火水木金土 to represent Sunday through
     Saturday with just one character without any confusion).
   - for zh_CN locales: use Arabic numerals for month names, matching the
     practice of all other CJK locales
   - Regenerate zh_CN.{GB2312,GBK} locales from zh_CN.UTF-8.
  
  Reported by:	ygy
  Reviewed by:	kevlo
  MFC after:	2 weeks
  Differential Revision:	https://reviews.freebsd.org/D18689

Modified:
  head/share/timedef/zh_CN.GB2312.src
  head/share/timedef/zh_CN.GBK.src
  head/share/timedef/zh_CN.UTF-8.src   (contents, props changed)
  head/share/timedef/zh_HK.UTF-8.src
  head/share/timedef/zh_TW.UTF-8.src

Modified: head/share/timedef/zh_CN.GB2312.src
==============================================================================
--- head/share/timedef/zh_CN.GB2312.src	Sun Dec 30 19:44:50 2018	(r342632)
+++ head/share/timedef/zh_CN.GB2312.src	Sun Dec 30 23:04:02 2018	(r342633)
@@ -4,41 +4,41 @@
 # -----------------------------------------------------------------------------
 #
 # Short month names
-!!#1TB
-!!#2TB
-!!#3TB
-!!#4TB
-!!#5TB
-!!#6TB
-!!#7TB
-!!#8TB
-!!#9TB
-#1#0TB
-#1#1TB
-#1#2TB
+ 1ÔÂ
+ 2ÔÂ
+ 3ÔÂ
+ 4ÔÂ
+ 5ÔÂ
+ 6ÔÂ
+ 7ÔÂ
+ 8ÔÂ
+ 9ÔÂ
+10ÔÂ
+11ÔÂ
+12ÔÂ
 #
 # Long month names (as in a date)
-Ò»ÔÂ
-¶þÔÂ
-ÈýÔÂ
-ËÄÔÂ
-ÎåÔÂ
-ÁùÔÂ
-ÆßÔÂ
-°ËÔÂ
-¾ÅÔÂ
-Ê®ÔÂ
-ʮһÔÂ
-Ê®¶þÔÂ
+1ÔÂ
+2ÔÂ
+3ÔÂ
+4ÔÂ
+5ÔÂ
+6ÔÂ
+7ÔÂ
+8ÔÂ
+9ÔÂ
+10ÔÂ
+11ÔÂ
+12ÔÂ
 #
 # Short weekday names
-ÖÜÈÕ
-ÖÜÒ»
-Öܶþ
-ÖÜÈý
-ÖÜËÄ
-ÖÜÎå
-ÖÜÁù
+ÈÕ
+Ò»
+¶þ
+Èý
+ËÄ
+Îå
+Áù
 #
 # Long weekday names
 ÐÇÆÚÈÕ
@@ -66,18 +66,18 @@
 %YÄê%_mÔÂ%eÈÕ %A %X %Z
 #
 # Long month names (without case ending)
-Ò»ÔÂ
-¶þÔÂ
-ÈýÔÂ
-ËÄÔÂ
-ÎåÔÂ
-ÁùÔÂ
-ÆßÔÂ
-°ËÔÂ
-¾ÅÔÂ
-Ê®ÔÂ
-ʮһÔÂ
-Ê®¶þÔÂ
+1ÔÂ
+2ÔÂ
+3ÔÂ
+4ÔÂ
+5ÔÂ
+6ÔÂ
+7ÔÂ
+8ÔÂ
+9ÔÂ
+10ÔÂ
+11ÔÂ
+12ÔÂ
 #
 # md_order
 md

Modified: head/share/timedef/zh_CN.GBK.src
==============================================================================
--- head/share/timedef/zh_CN.GBK.src	Sun Dec 30 19:44:50 2018	(r342632)
+++ head/share/timedef/zh_CN.GBK.src	Sun Dec 30 23:04:02 2018	(r342633)
@@ -18,27 +18,27 @@
 12ÔÂ
 #
 # Long month names (as in a date)
-Ò»ÔÂ
-¶þÔÂ
-ÈýÔÂ
-ËÄÔÂ
-ÎåÔÂ
-ÁùÔÂ
-ÆßÔÂ
-°ËÔÂ
-¾ÅÔÂ
-Ê®ÔÂ
-ʮһÔÂ
-Ê®¶þÔÂ
+1ÔÂ
+2ÔÂ
+3ÔÂ
+4ÔÂ
+5ÔÂ
+6ÔÂ
+7ÔÂ
+8ÔÂ
+9ÔÂ
+10ÔÂ
+11ÔÂ
+12ÔÂ
 #
 # Short weekday names
-ÖÜÈÕ
-ÖÜÒ»
-Öܶþ
-ÖÜÈý
-ÖÜËÄ
-ÖÜÎå
-ÖÜÁù
+ÈÕ
+Ò»
+¶þ
+Èý
+ËÄ
+Îå
+Áù
 #
 # Long weekday names
 ÐÇÆÚÈÕ
@@ -66,18 +66,18 @@
 %YÄê%_mÔÂ%eÈÕ %A %X %Z
 #
 # Long month names (without case ending)
-Ò»ÔÂ
-¶þÔÂ
-ÈýÔÂ
-ËÄÔÂ
-ÎåÔÂ
-ÁùÔÂ
-ÆßÔÂ
-°ËÔÂ
-¾ÅÔÂ
-Ê®ÔÂ
-ʮһÔÂ
-Ê®¶þÔÂ
+1ÔÂ
+2ÔÂ
+3ÔÂ
+4ÔÂ
+5ÔÂ
+6ÔÂ
+7ÔÂ
+8ÔÂ
+9ÔÂ
+10ÔÂ
+11ÔÂ
+12ÔÂ
 #
 # md_order
 md

Modified: head/share/timedef/zh_CN.UTF-8.src
==============================================================================
--- head/share/timedef/zh_CN.UTF-8.src	Sun Dec 30 19:44:50 2018	(r342632)
+++ head/share/timedef/zh_CN.UTF-8.src	Sun Dec 30 23:04:02 2018	(r342633)
@@ -18,27 +18,27 @@
 12月
 #
 # Long month names (as in a date)
-一月
-二月
-三月
-四月
-五月
-六月
-七月
-八月
-九月
-十月
-十一月
-十二月
+1月
+2月
+3月
+4月
+5月
+6月
+7月
+8月
+9月
+10月
+11月
+12月
 #
 # Short weekday names
-周日
-周一
-周二
-周三
-周四
-周五
-周六
+æ—¥
+一
+二
+三
+å››
+五
+å…­
 #
 # Long weekday names
 星期日
@@ -66,18 +66,18 @@
 %Y年%_m月%e日 %A %X %Z
 #
 # Long month names (without case ending)
-一月
-二月
-三月
-四月
-五月
-六月
-七月
-八月
-九月
-十月
-十一月
-十二月
+1月
+2月
+3月
+4月
+5月
+6月
+7月
+8月
+9月
+10月
+11月
+12月
 #
 # md_order
 md

Modified: head/share/timedef/zh_HK.UTF-8.src
==============================================================================
--- head/share/timedef/zh_HK.UTF-8.src	Sun Dec 30 19:44:50 2018	(r342632)
+++ head/share/timedef/zh_HK.UTF-8.src	Sun Dec 30 23:04:02 2018	(r342633)
@@ -32,13 +32,13 @@
 12月
 #
 # Short weekday names
-週日
-週一
-週二
-週三
-週四
-週五
-週六
+æ—¥
+一
+二
+三
+å››
+五
+å…­
 #
 # Long weekday names
 星期日

Modified: head/share/timedef/zh_TW.UTF-8.src
==============================================================================
--- head/share/timedef/zh_TW.UTF-8.src	Sun Dec 30 19:44:50 2018	(r342632)
+++ head/share/timedef/zh_TW.UTF-8.src	Sun Dec 30 23:04:02 2018	(r342633)
@@ -32,13 +32,13 @@
 12月
 #
 # Short weekday names
-週日
-週一
-週二
-週三
-週四
-週五
-週六
+æ—¥
+一
+二
+三
+å››
+五
+å…­
 #
 # Long weekday names
 星期日


More information about the svn-src-all mailing list