Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Tests: A03quoting.ztst and B03print.ztst fail on Alpine
- X-seq: zsh-workers 48580
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Cc: Sören Tempel <soeren@xxxxxxxxxxxxxxxxx>
- Subject: Re: Tests: A03quoting.ztst and B03print.ztst fail on Alpine
- Date: Wed, 14 Apr 2021 17:35:18 -0700
- Archived-at: <https://zsh.org/workers/48580>
- In-reply-to: <2QI8MIXULYGHT.3LL9GVWTMMU4C@8pit.net>
- List-id: <zsh-workers.zsh.org>
- References: <2QI8MIXULYGHT.3LL9GVWTMMU4C@8pit.net>
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