[Bug 199441] nl_langinfo(ABMON_1) only returns number in Chinese locales
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu Oct 8 17:49:00 UTC 2015
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199441
--- Comment #1 from commit-hook at freebsd.org ---
A commit references this bug:
Author: delphij
Date: Thu Oct 8 17:48:50 UTC 2015
New revision: 289041
URL: https://svnweb.freebsd.org/changeset/base/289041
Log:
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>
MFC after: 2 weeks
Changes:
head/share/timedef/zh_CN.GB18030.src
head/share/timedef/zh_CN.GB2312.src
head/share/timedef/zh_CN.UTF-8.src
head/share/timedef/zh_CN.eucCN.src
head/share/timedef/zh_TW.Big5.src
head/share/timedef/zh_TW.UTF-8.src
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list