mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@libc.org>
To: musl@lists.openwall.com
Subject: Re: wcscoll does not collate properly, even en_US
Date: Sun, 26 Nov 2017 17:32:39 -0500	[thread overview]
Message-ID: <20171126223239.GV1627@brightrain.aerifal.cx> (raw)
In-Reply-To: <5A1B330C.80107@adelielinux.org>

On Sun, Nov 26, 2017 at 03:33:00PM -0600, A. Wilcox wrote:
> Hi.
> 
> My understanding is that musl does not want to support collation in
> non-English languages (at least, not yet), but collation is supported in
> American English.

I'm not sure where you got that understanding. The information on the
wiki states that proper LC_COLLATE functionality (anything but raw
codepoint order) is intended future functionality but not yet done.
Nowhere in musl is "American English is supported but nothing else is"
an acceptable policy (and as such a hypothetical patch to add
hard-coded LC_COLLATE for American English without a general framework
capable of supporting arbitrary languages would be rejected by me).

> glib's test suite is failing on musl now because the locale code is just
> functional enough to make glib not skip the tests entirely (1.1.16
> failed the 'setlocale is giving us the locale we set back' test), yet
> collation doesn't work.  wcscoll is giving the same result as wcscmp.
> This is wrong; a simple test case is attached.  Run on a glibc machine,
> a FreeBSD machine, and a Solaris machine, it will output:

This is known. kaniini (from Alpine) and others have brought similar
things to my attention and the issue of how current setlocale behavior
affects applications/tests is under discussion in the thread
"setlocale behavior with 'missing' locales". I'd really like further
feedback on it so that the proposed changes don't end up being a worse
problem that we have to revert/throw-away.

While we're on the topic of getting things in a state so that locale
functionality is actually usable, the thread "Bikeshed invitation for
nl_langinfo ambiguities" also needs some attention.

Rich


      reply	other threads:[~2017-11-26 22:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-26 21:33 A. Wilcox
2017-11-26 22:32 ` Rich Felker [this message]

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=20171126223239.GV1627@brightrain.aerifal.cx \
    --to=dalias@libc.org \
    --cc=musl@lists.openwall.com \
    /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/musl/

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).