Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 08 Oct 2015 17:49:00 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 199441] nl_langinfo(ABMON_1) only returns number in Chinese locales
Message-ID:  <bug-199441-8-e3h0YxX3W7@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-199441-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-199441-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199441

--- Comment #1 from commit-hook@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-199441-8-e3h0YxX3W7>