Re: Bug#953075: debian-reference: Incorrect environment example for 'date' in section 1.5.2
On Thu, Jul 23, 2020 at 12:36:19PM +0200, Holger Wansing wrote:
> Hi,
>
> Hank Knox <hank.knox@gmail.com> wrote:
> > The example looks like:
> >
> > $ date
> > Sun Jun 3 10:27:39 JST 2007
> > $ LANG=fr_FR.UTF-8 date
> > dimanche 3 juin 2007, 10:27:33 (UTC+0900)
> >
> > but when I run it on my own system, I see the following (note that on my
> > system, LANG=en_CA.UTF-8 and all LC_* environment variables are the same):
> >
> > $ date
> > Tue Mar 3 21:56:39 EST 2020
> > $ LANG=fr_CA.UTF-8 date
> > Tue Mar 3 21:56:58 EST 2020
> >
> > Note that output in both cases in identical. The man page for date clearly says
> > that date relies on LC_TIME and this works as expected:
>
> Works fine here on a default configured Debian system.
> So I suspect there is some configuration difference on your system, which
> causes this.
Could it depend on which language environments you have installed?
On my Devuan, I have English and Canadian French, and here the fr_CA
gives me a date in French and the fr_FR is the one that geves me English
(presumably taken from the C envirnoment)
-- hendrik
>
> Thus the doc is correct; closing this bug.
>
> Holger
>
>
> --
> Holger Wansing <hwansing@mailbox.org>
> PGP-Fingerprint: 496A C6E8 1442 4B34 8508 3529 59F1 87CA 156E B076
>
Reply to: