[pacman-dev] [PATCH] makepkg: use localized date strings

Chih-Hsuan Yen yan12125 at gmail.com
Thu Mar 8 12:54:21 UTC 2018


2018-03-07 23:17 GMT+08:00 Silvan Jegen <s.jegen at gmail.com>:
> On Wed, Mar 7, 2018 at 2:50 PM, Andrew Gregory
> <andrew.gregory.8 at gmail.com> wrote:
>> On 03/07/18 at 02:30pm, Silvan Jegen wrote:
>>> On Wed, Mar 7, 2018 at 11:09 AM, Allan McRae <allan at archlinux.org> wrote:
>>> > On 07/03/18 17:56, Silvan Jegen wrote:
>>> >> On FreeBSD that option does seem to be
>>> >> supported: https://www.freebsd.org/cgi/man.cgi?date
>>> >
>>> > Right on the page you linked...
>>> >      %c    is replaced by national representation of time and date.
>>>
>>> Yes, that's why I linked it. I am not sure if it's supported on the
>>> other BSDs and/or MacOSX though, that is what I was trying to say. If
>>> all BSDs use the same version of date(1) then I assume adding this
>>> option is probably fine.
>>
>> %c is specified by POSIX
>
> I was hoping for the man page to mention that this formatting option
> is POSIX but I didn't.
>
> If it's POSIX then this change should be ok. The formatting of the
> date command will change for a lot of users but I assume that should
> be fine.

Looks like %c is specified in POSIX.1-2008 [1]:

%c    Locale's appropriate date and time representation.

[1] http://pubs.opengroup.org/onlinepubs/9699919799/utilities/date.html


More information about the pacman-dev mailing list