3 ms·
In all the scripted tests we write, one of the first lines will be: export LANG=C A similar construct is also used in most places where we call sort (exce
by rwmj 8y ago
In all the scripted tests we write, one of the first lines will be:
export LANG=C
A similar construct is also used in most places where we call sort (except where we're actually sorting strings of text that will be read by an end user), eg:
<some source of data> | LANG=C sort
- jwilk 8y agoSetting LANG=C is not sufficient, because LANG can be overridden by various LC_* variables. You should set LC_ALL=C instead.