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: Fri, 24 Jun 2022 22:19:41 +0000

```
$ datamash sum 1 <<< 1,1
datamash: invalid numeric value in line 1 field 1: '1,1'

$ LC_ALL=de_DE.utf8 datamash sum 1 <<< 1,1
1,1
```

Oh yeah, like you said, there is an extra issue with `bin`, which also has 
issues even with LC_ALL:

```
$ LC_ALL=de_DE.utf8 datamash bin:1 1 <<< 1,1
1

$ LC_ALL=de_DE.utf8 datamash bin:0,1 1 <<< 1,15
datamash: missing field for operation ‘bin’
```

So we have two problems:

* GNU Datamash does not respect LC_NUMERIC for *any* functions, of which `bin` 
is just a special case.

* The `bin` operation furthermore does not respect any non-default locale for 
decimal separators.

~ Tim



reply via email to

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