genode/tool/ports
Martin Stein 139a2cfae9 tool: use local LC_ALL=C instead of LC_COLLATE=C
We used to export 'LC_COLLATE=C' for the environment of Genode tools. This was
meant to ensure that sorting is always done C-style and not dependent on the
users locale settings. This is required, for instance, to ensure that the same
archive always yields the same hash.

However, 'export LC_COLLATE=C' is not sufficient. It can be outruled by an
'LC_ALL' setting in the users environment. The manual of 'sort' recommends to
set 'LC_ALL=C' locally if you want reliable results and this is what this
commit does. Furthermore it removes the former 'export LC_COLLATE=C'
directives.

Note that I couldn't find a way to set 'LC_ALL' local to 'exec ... sort' in
TCL. This is why I set it global instead using TCLs 'env' array.

Note that the Make directive '$(sort ...)' and the TCL directive 'lsort',
unlike the Shell directive 'sort', are not affected by the users locale
settings.

Fixes #4144
2021-05-28 14:15:26 +02:00
..
mk tool: use local LC_ALL=C instead of LC_COLLATE=C 2021-05-28 14:15:26 +02:00
check_hash tool/ports: utility for checking port hashes 2018-05-03 15:31:53 +02:00
check_port_source tool/ports: add tool to check source availability 2015-03-19 08:57:18 +01:00
current Tools for convenient handling of port contrib dirs 2015-01-20 11:23:50 +01:00
list Add 'update_hash' and 'list' to tool/ports 2014-05-27 13:45:03 +02:00
prepare_port prepare_port: fix race condition in safety rule 2019-04-01 19:33:49 +02:00
shortcut Tools for convenient handling of port contrib dirs 2015-01-20 11:23:50 +01:00
update_hash Add 'update_hash' and 'list' to tool/ports 2014-05-27 13:45:03 +02:00