From: Alastair Houghton <ahoughton@apple.com>
To: musl@lists.openwall.com
Cc: Rich Felker <dalias@libc.org>
Subject: Re: [musl] setlocale() again
Date: Tue, 05 Dec 2023 15:19:15 +0000 [thread overview]
Message-ID: <FD05A184-901E-44F2-AE1E-782B58BCFDCA@apple.com> (raw)
In-Reply-To: <25283A51-7FB1-4CB1-9C26-DF06F69922BC@apple.com>
> Maybe I’ve missed a reply somewhere along the lines; here’s a tentative patch that just does the simple thing of making setlocale(LC_ALL, "") pick the C.UTF-8 locale if it’s unable to find the locale specified in the environment.
[snip]
Hah. So, testing that patch, having removed my hacks to avoid using Musl’s locale support, I find it doesn’t actually work (for two reasons; one, NULL doesn’t mean not found, it means “use ‘C’”; and two, there is some very odd code in setlocale.c that causes things to go wrong if the specified name is longer than LOCALE_NAME_MAX).
I’ll come back with an updated patch in a bit.
Kind regards,
Alastair.
next prev parent reply other threads:[~2023-12-05 15:19 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-10 15:41 Alastair Houghton
2023-08-10 15:51 ` Rich Felker
2023-09-05 12:57 ` Alastair Houghton
2023-09-18 14:18 ` Alastair Houghton
2023-10-27 20:15 ` Pablo Correa Gomez
2023-11-28 16:27 ` Alastair Houghton
2023-11-28 23:15 ` Pablo Correa Gomez
2023-11-28 17:32 ` Alastair Houghton
2023-11-28 23:21 ` Pablo Correa Gomez
2023-12-05 15:19 ` Alastair Houghton [this message]
2023-12-08 10:46 ` Alastair Houghton
2023-12-08 23:59 ` Rich Felker
2023-12-09 18:44 ` Pablo Correa Gomez
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=FD05A184-901E-44F2-AE1E-782B58BCFDCA@apple.com \
--to=ahoughton@apple.com \
--cc=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).