[bugs] [illumos gate - Bug #1198] date formats contain spaces where not expected
illumos bugs
bugs at lists.illumos.org
Mon Jul 11 13:47:37 PDT 2011
Issue #1198 has been updated by Gordon Ross.
[Copied my note 8 from 1030]
It does seem that the "%x" format is more commonly defined as
some permutation of "%Y", "%m", "%d" (and not "%e"), so
the result of %x will usually not contain spaces.
I did a "grep d_fmt" in $SRC/cmd/localedef/data
and the result is an interesting hodge-podge.
In general, the locale-specific aspects of d_fmt
are (1) the order, and (2) the separators.
Beyond that, most (all?) should use %Y rather than %y,
and where the day of the month is somewhere other than
the start of the d_fmt string, probably should be %d so
there will not be spaces within the result. (A space
at the front is probably harmless, so locales that use
d_fmt=%e/%m/%Y (for example) are probably fine.)
I suggest we cleanup the d_fmt definitions per above.
----------------------------------------
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