# HG changeset patch # User Franz Glasner # Date 1725438984 -7200 # Node ID 2c31b1d4bd667ae21e4adeea7b71c85f569999f7 # Parent 0665a15bd3ca6b59b236009c335864dd0d0fddf1 array.sh: FIX: call sed with LC_ALL=C to explicitely set the C locale when calling into sed diff -r 0665a15bd3ca -r 2c31b1d4bd66 share/local-bsdtools/array.sh --- a/share/local-bsdtools/array.sh Tue Sep 03 12:20:15 2024 +0200 +++ b/share/local-bsdtools/array.sh Wed Sep 04 10:36:24 2024 +0200 @@ -97,8 +97,8 @@ #: _farr_quote_for_eval_dsq() { printf "%s" "${1}" \ - | /usr/bin/sed -e $'s/\\\\/\\\\\\\\/g' -e $'s/\'/\\\\\'/g' - # escape a backslash escape a single quote + | LC_ALL=C /usr/bin/sed -e $'s/\\\\/\\\\\\\\/g' -e $'s/\'/\\\\\'/g' + # escape a backslash escape a single quote # ' # make Emacs happy for correct syntax highlighting }