Command line arguments depend on locale

Pádraig Brady P at draigBrady.com
Thu Jan 31 20:44:31 UTC 2013


On 01/31/2013 06:01 PM, Matthias Clasen wrote:
> ----- Original Message ----
>>
>> Right, output should be locale specific. Input command line args...
>> seems
>> specious.
>
> Until you put a pipe between and turn the outputs of command a into inputs of command b...
>

It's a fair point.

I.E. I/O doesn't round trip here:

$ LC_NUMERIC=de_DE env printf "%f\n" 0.1 $(LC_NUMERIC=de_DE env printf "%f\n" 0.1)
0,100000
printf: 0,100000: value not completely converted
0,000000

I suppose commands might only enable locale specific output if
output is to a tty, though that brings other inconsistencies.

thanks,
Pádraig.



More information about the devel mailing list