]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r289038,r289041:
authordelphij <delphij@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 29 Oct 2015 17:04:43 +0000 (17:04 +0000)
committerdelphij <delphij@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 29 Oct 2015 17:04:43 +0000 (17:04 +0000)
commit9ed79b47510097dcc4de4290e753035e1e74f04d
treeee9de3a0bf42be03d1d8c9e3620a626508d9a2ab
parent8c6b42ef8748ac7ddcaeddac668f882e56f491b8
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/9@290151 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