--- Begin Message ---
- To: submit@bugs.debian.org
- Subject: strftime not work %Om specification
- From: Ivan Borzenkov <ivan.borzenkov@gmail.com>
- Date: Wed, 8 May 2013 11:58:58 +0400
- Message-id: <CAMMMHd1oQMd19aKZxuvyh+qWFbbu6MukOeKuCPUf_6mBESAnLA@mail.gmail.com>
Package: libc6
Version: 2.17-1
man page of strftime: http://linux.die.net/man/3/strftime
Some conversion specifications can be modified by preceding the
conversion specifier character by the E or O modifier to indicate that
an alternative format should be used. If the alternative format or
specification does not exist for the current locale, the behavior will
be as if the unmodified conversion specification were used. (SU) The
Single UNIX Specification mentions %Ec, %EC, %Ex, %EX, %Ey, %EY, %Od,
%Oe, %OH, %OI, %Om, %OM, %OS, %Ou, %OU, %OV, %Ow, %OW, %Oy, where the
effect of the Omodifier is to use alternative numeric symbols (say,
roman numerals), and that of the E modifier is to use a
locale-dependent alternative representation.
date +'%d %B %Om'
out: 08 Май 05
expect: 08 Май мая
--- End Message ---
--- Begin Message ---
- To: Ivan Borzenkov <ivan.borzenkov@gmail.com>, 707200-done@bugs.debian.org
- Subject: Re: Bug#707200: locale info
- From: Aurelien Jarno <aurelien@aurel32.net>
- Date: Fri, 28 Jun 2013 12:07:52 +0200
- Message-id: <20130628100751.GN13072@hall.aurel32.net>
- In-reply-to: <20130511145704.GS31148@hall.aurel32.net>
- References: <CAMMMHd1-mfuh-ZUQVRCRoukfagKB5dut2P_eh_gOA7tnNCzHxg@mail.gmail.com> <20130511145704.GS31148@hall.aurel32.net>
On Sat, May 11, 2013 at 04:57:04PM +0200, Aurelien Jarno wrote:
> On Thu, May 09, 2013 at 08:16:19AM +0400, Ivan Borzenkov wrote:
> > Hello, in ru_RU.UTF-8 locale
> >
> > LC_TIME=ru_RU.UTF-8 date +'%d %B %Om'
> > 09 Май 05
> >
>
> The ru_RU locale doesn't support the alternate format, the strftime is
> behaving as documented here.
>
As explained above, there is no bug, so I am closing it.
--
Aurelien Jarno GPG: 1024D/F1BCDB73
aurelien@aurel32.net http://www.aurel32.net
--- End Message ---