Re: [PATCH] execline: multicall: make sort independent of locale

From: Laurent Bercot <ska-skaware_at_skarnet.org>
Date: Sat, 18 Feb 2023 13:43:43 +0000

>reset LC_ALL to avoid locale dependent sorting.
>This is critical to ensure bsort() works reliably.
>
>In my locale "execline-cd" was sorted after "execlineb"

... lol. Changing the sorting order for ASCII characters is probably the
most insane misdesign in locales. Good catch!

  Thanks for the patch. Going to apply with a slight modification: making
the change global to the whole script, for easier maintainability.

--
  Laurent
Received on Sat Feb 18 2023 - 14:43:43 CET

This archive was generated by hypermail 2.4.0 : Sat Feb 18 2023 - 14:44:12 CET