[bugs] [illumos gate - Bug #1198] date formats contain spaces where not expected
illumos bugs
bugs at lists.illumos.org
Mon Jul 11 13:46:10 PDT 2011
Issue #1198 has been updated by Gordon Ross.
[Copied Note 7 by Gary Mills from 1130]
I would say that the bug is in strftime. It should never
produce a condensed date string that contains an internal
space. Here's what I get now:
<pre>
$ env LC_TIME=en_CA.ISO8859-1 date +%x
21/05/11
$ env LC_TIME=en_US.ISO8859-1 date +%x
05/21/11
</pre>
If the day of the month in the second example has a
leading space, we have a problem. Now, strftime() has
no option letter to print single-digit day numbers. The only
choices are with a leading zero or leading space. Unless
strftime() can be modified to compress out spaces after
formatting, the only reasonable choice is the leading zero.
----------------------------------------
Bug #1198: date formats contain spaces where not expected
https://www.illumos.org/issues/1198
Author: Gordon Ross
Status: New
Priority: Low
Assignee: Gordon Ross
Category: locale - data and messages
Target version:
Difficulty: Medium
Tags: needs-triage
LANG=en_US.UTF-8 date '+%x'
has unexpected form in the first 9 days of the month:
<pre>
$ date '+%x'
05/ 6/11
</pre>
(Note the space before the numeral six)
The older 8859 did not do that.
This also used to break strptime, but that's fixed.
(https://www.illumos.org/issues/1030)
--
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://www.illumos.org/my/account
More information about the bugs
mailing list