From: Bart Schaefer <schaefer@brasslantern.com>
To: Zsh hackers list <zsh-workers@zsh.org>
Cc: "Sören Tempel" <soeren@soeren-tempel.net>
Subject: Re: Tests: A03quoting.ztst and B03print.ztst fail on Alpine
Date: Wed, 14 Apr 2021 17:35:18 -0700 [thread overview]
Message-ID: <CAH+w=7ZFCVk76p4BWDj3f4wYOEiTw1_LWMdO9Psd84ZyRt-+5w@mail.gmail.com> (raw)
In-Reply-To: <2QI8MIXULYGHT.3LL9GVWTMMU4C@8pit.net>
On Wed, Apr 14, 2021 at 12:49 PM Sören Tempel <soeren@soeren-tempel.net> 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.
next prev parent reply other threads:[~2021-04-15 0:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-14 19:48 Sören Tempel
2021-04-15 0:35 ` Bart Schaefer [this message]
2021-04-15 18:15 ` Sören Tempel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAH+w=7ZFCVk76p4BWDj3f4wYOEiTw1_LWMdO9Psd84ZyRt-+5w@mail.gmail.com' \
--to=schaefer@brasslantern.com \
--cc=soeren@soeren-tempel.net \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).