[illumos-Developer] [REVIEW] 1030 strftime "%x" should generate something strptime can parse

Gary Mills mills at cc.umanitoba.ca
Sat Jul 2 05:30:03 PDT 2011


On Fri, Jul 01, 2011 at 10:48:53PM -0400, Gordon Ross wrote:
> Here's a fix for: https://www.illumos.org/issues/1030
> 1030 strftime "%x" should generate something strptime can parse
> (This bugs me in the first ten days of every month:)

I kept wondering why I've never seen this problem.  This is Solaris
10, where we're still using 8859 locales:

    $ env LC_TIME=en_CA.ISO8859-1 date +%x
    02/07/11
    $ env LC_TIME=en_US.ISO8859-1 date +%x
    07/02/11

This is Solaris 11 Express:

    $ env LC_TIME="en_CA.UTF-8" date +%x
    07/02/11
    $ env LC_TIME="en_US.UTF-8" date +%x
    07/ 2/11

This is OI 148:

    $ env LC_TIME="en_CA.UTF-8" date +%x
    11-07-02
    $ env LC_TIME="en_US.UTF-8" date +%x
    07/ 2/11

-- 
-Gary Mills-        -Unix Group-        -Computer and Network Services-



More information about the Developer mailing list