https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199441
Bug ID: 199441
Summary: nl_langinfo(ABMON_1) only returns number in Chinese
locales
Product: Base System
Version: 10.1-RELEASE
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: misc
Assignee: [email protected]
Reporter: [email protected]
Created attachment 155585
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=155585&action=edit
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 returns numbers. 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, but I have
not done much testing to know whether it can cause other problems in Chinese
locales. The GNU C Library also returns values with '月' appended.
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"