Forget about my previous message, it was stupid (too much Python
recently :), the code checks for a translation and everyone must
provide a translation (identical or not) to use the locale format.

2009/3/15 Stéphane Raimbault <[email protected]>:
> 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")
>   };
>
>
>


_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to