zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: "zsh-workers@zsh.org" <zsh-workers@zsh.org>
Subject: Re: UTF-8 locales on BSDs do not support collation correctly
Date: Sun, 29 Jan 2017 19:59:21 -0800	[thread overview]
Message-ID: <CAH+w=7amXAO1S7GjT35WA9_KcQsHG838t4CaTnWmaYHv4ARHmg@mail.gmail.com> (raw)
In-Reply-To: <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@kba.biglobe.ne.jp> wrote:
> After the commit:
>
> commit 0e33ebc6514c8719513f3f20161274f6af2caffc
> Author: Mikael Magnusson <mikachu@gmail.com>
> 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?


  parent reply	other threads:[~2017-01-30  3:59 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-25 14:27 Jun T.
2017-01-25 18:02 ` Mikael Magnusson
2017-01-26 17:57   ` Peter Stephenson
2017-01-26 19:30     ` Jens Elkner
2017-01-27  9:41     ` Peter Stephenson
2017-01-28 20:26       ` Bart Schaefer
2017-01-28 20:42         ` Peter Stephenson
2017-01-28 23:27           ` Bart Schaefer
2017-01-30 10:46             ` Peter Stephenson
2017-01-30  3:59 ` Bart Schaefer [this message]
2017-01-30  9:49   ` Peter Stephenson
2017-01-31 10:09   ` Jun T.
2017-01-31 11:19     ` Peter Stephenson

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=7amXAO1S7GjT35WA9_KcQsHG838t4CaTnWmaYHv4ARHmg@mail.gmail.com' \
    --to=schaefer@brasslantern.com \
    --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).