bug-datamash
[Top][All Lists]
Advanced

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

Re: [BUG] fractional bin sizes do not work in some locales (e.g., de_DE.


From: Tim Rice
Subject: Re: [BUG] fractional bin sizes do not work in some locales (e.g., de_DE.UTF-8)
Date: Sat, 25 Jun 2022 01:32:17 +0000

Hey Erik,

I use the following locale setting all the time:

   $ locale
   LANG=en_US.UTF-8
   LANGUAGE=
   LC_CTYPE="en_US.UTF-8"
   LC_NUMERIC=de_DE.UTF-8
   LC_TIME=de_DE.UTF-8
   LC_COLLATE="en_US.UTF-8"
   LC_MONETARY=de_DE.UTF-8
   LC_MESSAGES="en_US.UTF-8"
   LC_PAPER=de_DE.UTF-8
   LC_NAME=de_DE.UTF-8
   LC_ADDRESS=de_DE.UTF-8
   LC_TELEPHONE=de_DE.UTF-8
   LC_MEASUREMENT=de_DE.UTF-8
   LC_IDENTIFICATION=de_DE.UTF-8
   LC_ALL=

It might be important that LC_ALL is not set.

Aha, unsetting LC_ALL helped me see what you mean. Now LC_NUMERIC works as 
expected. In my bash_profile I set LC_ALL, LANG and LANGUAGE to en_AU.UTF-8.


I think this needs a way to check whether the locale is actually
available.  IIRC GNU Coreutils has locale-specific tests that do check
if the needed locale is available and if not skips the test.  IIRC one
of their tests uses a locale I did not have installed and the test
was skipped.

Good tip, I will check coreutils.


I am not sure about the significance of the different spellings, both
de_DE.UTF-8 and de_DE.utf8 (and en_US.UTF-8 / en_US.utf8) work for me.

Yeah, I don't think it matters. I just went with what `locale -a` showed me; 
the results seem to be the same.


I'll try to look into this during the weekend, I am going to sleep now.

No worries, sleep well.

~ Tim



reply via email to

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