* Mattia Rizzolo <[email protected]>, 2015-12-05, 13:40:
You should set LC_ALL, not LANG.
LANG can be overridden by various LC_* variables;
LC_ALL overrides them all.

And this is particularly true for

-expected_files_after_removal=$(sort <<END
+expected_files_after_removal=$(LANG=C sort <<END

AFAIK, LANG has no effects on `sort` behaviour.

That's not quite accurate. LANG _can_ affect sort behaviour:

$ printf 'gęś\ngoose\n' | env -i LANG=pl_PL.UTF-8 sort
gęś
goose

$ printf 'gęś\ngoose\n' | env -i sort
goose
gęś


This is what POSIX[0] says about LANG:
This variable shall determine the locale category for native language, local customs, and coded character set in the absence of the LC_ALL and other LC_* (LC_COLLATE, LC_CTYPE, LC_MESSAGES, LC_MONETARY, LC_NUMERIC, LC_TIME) environment variables.

[0] 
http://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap08.html#tag_08_02

--
Jakub Wilk

_______________________________________________
devscripts-devel mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/devscripts-devel

Reply via email to