bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ls - locale format


From: Stéphane Raimbault
Subject: ls - locale format
Date: Sun, 15 Mar 2009 00:10:21 +0100

Hi,

I don't understand this code in ls.c:

char const *locale_format = dcgettext (NULL, long_time_format[i], LC_TIME);

if (locale_format == long_time_format[i])
        goto case_long_iso_time_style;

so if the translation is identical to the English message, the code jumps to
long ISO time style, really strange!

Does it mean it's impossible for English people to see the result of "%b %e
%Y"?

Stephane

PS :
static char const *long_time_format[2] =
  {
    N_("%b %e  %Y"),
    N_("%b %e %H:%M")
  };


reply via email to

[Prev in Thread] Current Thread [Next in Thread]