]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r289038,r289041:
authordelphij <delphij@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 29 Oct 2015 17:00:51 +0000 (17:00 +0000)
committerdelphij <delphij@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 29 Oct 2015 17:00:51 +0000 (17:00 +0000)
commitf5109e1c4544e2dffee797613bb622e22c379461
tree85e9fd3313f122c46525b93b16de276959370bb8
parent542a35050d64751d732fe42124a523e1277955a5
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>

git-svn-id: svn://svn.freebsd.org/base/stable/10@290150 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
share/timedef/zh_CN.GB18030.src
share/timedef/zh_CN.GB2312.src
share/timedef/zh_CN.UTF-8.src
share/timedef/zh_CN.eucCN.src
share/timedef/zh_TW.Big5.src
share/timedef/zh_TW.UTF-8.src