svn commit: r290150 - stable/10/share/timedef
Xin LI
delphij at FreeBSD.org
Thu Oct 29 17:00:53 UTC 2015
Author: delphij
Date: Thu Oct 29 17:00:51 2015
New Revision: 290150
URL: https://svnweb.freebsd.org/changeset/base/290150
Log:
MFC r289038,r289041:
Add encoding for mime-types.
Fix short month names and replace %b with %_m in date_fmt for Chinese
locales.
When using a Chinese locale, such as zh_TW.UTF-8 or zh_CN.UTF-8,
nl_langinfo(ABMON_*) only returned numbers. For instance,
nl_langinfo(ABMON_1) returns 1, nl_langinfo(ABMON_2) returns 2, and
so on.
This causes problems in applications that put the short month name
and the day of the month together. For example, 'Apr 14' in English
becomes '414æ¥' in Chinese on the top bar of GNOME Shell.
This problem may be resolved by appending 'æ' to all short month
names and replacing %b with %_m in date_fmt. ja_JP.UTF-8 already
does this, and this matches the en_US.ISO8859-1 behavior, which
returns 'Oct'. The GNU C Library also returns values with 'æ'
appended.
PR: 199441
Submitted by: Ting-Wei Lan <lantw44 gmail com>
Modified:
stable/10/share/timedef/zh_CN.GB18030.src (contents, props changed)
stable/10/share/timedef/zh_CN.GB2312.src (contents, props changed)
stable/10/share/timedef/zh_CN.UTF-8.src (contents, props changed)
stable/10/share/timedef/zh_CN.eucCN.src (contents, props changed)
stable/10/share/timedef/zh_TW.Big5.src (contents, props changed)
stable/10/share/timedef/zh_TW.UTF-8.src (contents, props changed)
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/share/timedef/zh_CN.GB18030.src
==============================================================================
--- stable/10/share/timedef/zh_CN.GB18030.src Thu Oct 29 16:53:34 2015 (r290149)
+++ stable/10/share/timedef/zh_CN.GB18030.src Thu Oct 29 17:00:51 2015 (r290150)
@@ -5,18 +5,18 @@
#
# Short month names
#
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
-10
-11
-12
+ 1ÔÂ
+ 2ÔÂ
+ 3ÔÂ
+ 4ÔÂ
+ 5ÔÂ
+ 6ÔÂ
+ 7ÔÂ
+ 8ÔÂ
+ 9ÔÂ
+10ÔÂ
+11ÔÂ
+12ÔÂ
#
# Long month names (as in a date)
#
@@ -75,7 +75,7 @@
#
# date_fmt
#
-%YÄê%bÔÂ%eÈÕ %A %X %Z
+%YÄê%_mÔÂ%eÈÕ %A %X %Z
#
# Long month names (without case ending)
#
Modified: stable/10/share/timedef/zh_CN.GB2312.src
==============================================================================
--- stable/10/share/timedef/zh_CN.GB2312.src Thu Oct 29 16:53:34 2015 (r290149)
+++ stable/10/share/timedef/zh_CN.GB2312.src Thu Oct 29 17:00:51 2015 (r290150)
@@ -5,18 +5,18 @@
#
# Short month names
#
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
-10
-11
-12
+ 1ÔÂ
+ 2ÔÂ
+ 3ÔÂ
+ 4ÔÂ
+ 5ÔÂ
+ 6ÔÂ
+ 7ÔÂ
+ 8ÔÂ
+ 9ÔÂ
+10ÔÂ
+11ÔÂ
+12ÔÂ
#
# Long month names (as in a date)
#
@@ -75,7 +75,7 @@
#
# date_fmt
#
-%YÄê%bÔÂ%eÈÕ %A %X %Z
+%YÄê%_mÔÂ%eÈÕ %A %X %Z
#
# Long month names (without case ending)
#
Modified: stable/10/share/timedef/zh_CN.UTF-8.src
==============================================================================
--- stable/10/share/timedef/zh_CN.UTF-8.src Thu Oct 29 16:53:34 2015 (r290149)
+++ stable/10/share/timedef/zh_CN.UTF-8.src Thu Oct 29 17:00:51 2015 (r290150)
@@ -5,18 +5,18 @@
#
# Short month names
#
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
-10
-11
-12
+ 1æ
+ 2æ
+ 3æ
+ 4æ
+ 5æ
+ 6æ
+ 7æ
+ 8æ
+ 9æ
+10æ
+11æ
+12æ
#
# Long month names (as in a date)
#
@@ -75,7 +75,7 @@
#
# date_fmt
#
-%Yå¹´%bæ%eæ¥ %A %X %Z
+%Yå¹´%_mæ%eæ¥ %A %X %Z
#
# Long month names (without case ending)
#
Modified: stable/10/share/timedef/zh_CN.eucCN.src
==============================================================================
--- stable/10/share/timedef/zh_CN.eucCN.src Thu Oct 29 16:53:34 2015 (r290149)
+++ stable/10/share/timedef/zh_CN.eucCN.src Thu Oct 29 17:00:51 2015 (r290150)
@@ -5,18 +5,18 @@
#
# Short month names
#
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
-10
-11
-12
+ 1ÔÂ
+ 2ÔÂ
+ 3ÔÂ
+ 4ÔÂ
+ 5ÔÂ
+ 6ÔÂ
+ 7ÔÂ
+ 8ÔÂ
+ 9ÔÂ
+10ÔÂ
+11ÔÂ
+12ÔÂ
#
# Long month names (as in a date)
#
@@ -75,7 +75,7 @@
#
# date_fmt
#
-%YÄê%bÔÂ%eÈÕ %A %X %Z
+%YÄê%_mÔÂ%eÈÕ %A %X %Z
#
# Long month names (without case ending)
#
Modified: stable/10/share/timedef/zh_TW.Big5.src
==============================================================================
--- stable/10/share/timedef/zh_TW.Big5.src Thu Oct 29 16:53:34 2015 (r290149)
+++ stable/10/share/timedef/zh_TW.Big5.src Thu Oct 29 17:00:51 2015 (r290150)
@@ -4,18 +4,18 @@
# WARNING: empty lines are essential too
#
# Short month names
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
-10
-11
-12
+ 1¤ë
+ 2¤ë
+ 3¤ë
+ 4¤ë
+ 5¤ë
+ 6¤ë
+ 7¤ë
+ 8¤ë
+ 9¤ë
+10¤ë
+11¤ë
+12¤ë
#
# Long month names (as in a date)
#
@@ -74,7 +74,7 @@
#
# date_fmt
#
-%Y¦~%b¤ë%e¤é %A %X %Z
+%Y¦~%_m¤ë%e¤é %A %X %Z
#
# Long month names (without case ending)
#
Modified: stable/10/share/timedef/zh_TW.UTF-8.src
==============================================================================
--- stable/10/share/timedef/zh_TW.UTF-8.src Thu Oct 29 16:53:34 2015 (r290149)
+++ stable/10/share/timedef/zh_TW.UTF-8.src Thu Oct 29 17:00:51 2015 (r290150)
@@ -4,18 +4,18 @@
# WARNING: empty lines are essential too
#
# Short month names
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
-10
-11
-12
+ 1æ
+ 2æ
+ 3æ
+ 4æ
+ 5æ
+ 6æ
+ 7æ
+ 8æ
+ 9æ
+10æ
+11æ
+12æ
#
# Long month names (as in a date)
#
@@ -74,7 +74,7 @@
#
# date_fmt
#
-%Yå¹´%bæ%eæ¥ %A %X %Z
+%Yå¹´%_mæ%eæ¥ %A %X %Z
#
# Long month names (without case ending)
#
More information about the svn-src-stable-10
mailing list