From: Daniel Schoepe <daniel@schoepe.org>
To: musl@lists.openwall.com
Subject: Re: printf doesn't respect locale
Date: Tue, 10 Sep 2019 17:00:49 +0100 [thread overview]
Message-ID: <CAPy=dbJCXN96RKb7VQQt2wurtJQrRAkkUtrNv+F9prvmA+714A@mail.gmail.com> (raw)
In-Reply-To: <20190909175452.GO9017@brightrain.aerifal.cx>
On Mon, Sep 9, 2019 at 6:55 PM Rich Felker <dalias@libc.org> wrote:
> It's not a discrepancy; the set of locales supported by an
> implementation, unless it includes the POSIX localedef utility/option,
> is implementation-defined. musl's definition does not include locales
> where the radix point is not '.'
Thanks, that makes sense. However, it may make sense to document this
assumption in the FAQ entries related to printf.
> I really really really don't like the feature of changing the radix
> point, and this implementation choice was intentional, but it's come
> up several times with people being upset that it's not in line with
> musl's mission of being multilingual-friendly. I think it deserves
> some consideration again along with upcoming locale improvements.
> There's at least one past thread with design sketches on how it would
> need to be done (and what needs to be done anyway for LC_MONETARY
> stuff), and sadly it got no feedback from people interested in
> improved locale functionality which is why I've kinda let it be for
> the time being...
I'm also not a fan of this behavior, I actually stumbled across this
when tracking
down a bug the different radix usage caused.
Best,
Daniel
>
> Rich
next prev parent reply other threads:[~2019-09-10 16:00 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-09 16:31 Daniel Schoepe
2019-09-09 16:39 ` Daniel Schoepe
2019-09-09 16:51 ` Szabolcs Nagy
2019-09-09 17:55 ` Rich Felker
2019-09-09 17:54 ` Rich Felker
2019-09-10 16:00 ` Daniel Schoepe [this message]
2019-09-10 16:31 ` Szabolcs Nagy
2019-09-10 16:44 ` Tim Tassonis
2019-09-10 17:30 ` Rich Felker
2019-09-10 17:10 ` Daniel Schoepe
2019-09-10 17:33 ` Rich Felker
2019-09-10 18:43 ` Szabolcs Nagy
2019-09-10 21:55 ` A. Wilcox
2019-09-11 10:01 ` Szabolcs Nagy
2019-09-11 10:07 ` Jens Gustedt
2019-09-11 11:44 ` Rich Felker
2019-09-11 12:53 ` Jens Gustedt
2019-09-11 13:47 ` Rich Felker
2019-09-11 15:15 ` Jens Gustedt
2019-09-11 15:38 ` Rich Felker
2019-09-11 18:08 ` Jens Gustedt
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='CAPy=dbJCXN96RKb7VQQt2wurtJQrRAkkUtrNv+F9prvmA+714A@mail.gmail.com' \
--to=daniel@schoepe.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).