Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: UTF-8 locales on BSDs do not support collation correctly
- X-seq: zsh-workers 40461
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: "zsh-workers@xxxxxxx" <zsh-workers@xxxxxxx>
- Subject: Re: UTF-8 locales on BSDs do not support collation correctly
- Date: Sun, 29 Jan 2017 19:59:21 -0800
- Authentication-results: amavisd4.gkg.net (amavisd-new); dkim=pass (2048-bit key) header.d=brasslantern-com.20150623.gappssmtp.com
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-transfer-encoding; bh=iByaXCcNuUBwtoRH+XR+YcYd4+RSY4SW4ENaljUGex0=; b=WJL+CAi+U7HaB7eyzYDy2BaZlfSZJR0DuDP/7znKSwAT9W8lOTzfinzcK5eiZ4k0Ny RnThznjqATfdo6wJU6b7WoPGZxlvOw3/KGKM3on58hZmBNT1fdmMlNrgON1rQDYWuhAW GxIqmyu/ITQDbpo23wq6gzktryhK4ngOS2e/aWhUEnHyKSjmjZSl/QcHIbFEWRr2UuAC skxK1AiVpgX2ocVU172VdUWWTP8ntw2ao3gHLIWxXNnKoJJwQoO/hJVVAPXSS1dry2B2 gO3YKBN2fx63I5oeV/nWJbxoOuZwh/QuMT29mSY96hxOSU7f5f+k0xw0Z/AI0zV7uUyL 4Z9A==
- In-reply-to: <D8FAAD99-A0A8-48B5-9636-620ADB815B21@kba.biglobe.ne.jp>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <D8FAAD99-A0A8-48B5-9636-620ADB815B21@kba.biglobe.ne.jp>
This thread sort of got hijacked by the utmpx issue, so we never got
to a resolution on the collation question that started it. Is this
just an issue with the test or is there a real problem here?
Testing multibyte with locale en_US.UTF-8
--- /tmp/zsh.ztst.16197/ztst.out 2017-01-29 19:41:31.000000000 -0800
+++ /tmp/zsh.ztst.16197/ztst.tout 2017-01-29 19:41:31.000000000 -0800
@@ -1,2 +1,2 @@
-a ą b c ć d e ę f
-a ą b c ć d e ę f
+a b c d e f ą ć ę
+a b c d e f ą ć ę
Test ./D07multibyte.ztst failed: output differs from expected as shown above
On Wed, Jan 25, 2017 at 6:27 AM, Jun T. <takimoto-j@xxxxxxxxxxxxxxxxx> wrote:
> After the commit:
>
> commit 0e33ebc6514c8719513f3f20161274f6af2caffc
> Author: Mikael Magnusson <mikachu@xxxxxxxxx>
> Date: Tue Jan 24 12:01:57 2017 +0100
>
> posted: Make D07 recognize more spellings of pl_PL.UTF-8
>
> diff --git a/Test/D07multibyte.ztst b/Test/D07multibyte.ztst
> (snip)
> - if [[ -n ${$(locale -a 2>/dev/null)[(R)pl_PL.utf8]} ]]; then
> + if [[ -n ${$(locale -a 2>/dev/null)[(R)pl_PL.(utf8|UTF-8)]} ]]; then
>
>
> the test D07multibyte.ztst fails on macOS and freeBSD.
> On these OSs (and maybe on other BSDs), the locale pl_PL.UTF-8 exists
> but it does not support collation correctly (it just uses ASCII collation).
>
> Are there any OS which uses UTF-8 (instead of utf8) for locale name
> and supports the collation correctly?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author