Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Tests: A03quoting.ztst and B03print.ztst fail on Alpine



On Wed, Apr 14, 2021 at 12:49 PM Sören Tempel <soeren@xxxxxxxxxxxxxxxxx> wrote:
>
> -16#DC
> +16#DFDC
[...]
> -f0
> +dff0

Both of these look like the test is operating in a 16-bit locale
instead of an 8-bit locale.  ztst.zsh resets all the locale-related
environment variables to "C" only if they already are set; a default
locale that does not appear in the environment won't be changed:

# Ensure the locale does not screw up sorting.  Don't supply a locale
# unless there's one set, to minimise problems.
[[ -n $LC_ALL ]] && LC_ALL=C
[[ -n $LC_COLLATE ]] && LC_COLLATE=C
[[ -n $LC_NUMERIC ]] && LC_NUMERIC=C
[[ -n $LC_MESSAGES ]] && LC_MESSAGES=C
[[ -n $LANG ]] && LANG=C

Only a few tests (D07multibyte and some V,X,Y) actually assert a
multibyte locale.

Maybe "unless there's one set, to minimise problems" is overly optimistic now.




Messages sorted by: Reverse Date, Date, Thread, Author