From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 2015 invoked from network); 5 Sep 2023 12:58:25 -0000 Received: from second.openwall.net (193.110.157.125) by inbox.vuxu.org with ESMTPUTF8; 5 Sep 2023 12:58:25 -0000 Received: (qmail 1915 invoked by uid 550); 5 Sep 2023 12:58:20 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 1873 invoked from network); 5 Sep 2023 12:58:19 -0000 X-Proofpoint-ORIG-GUID: 8JpJJIs4x29XuDl_94LFi6rCLwHR2tuP X-Proofpoint-GUID: 8JpJJIs4x29XuDl_94LFi6rCLwHR2tuP X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.601,18.0.957 definitions=2023-09-05_10:2023-09-05,2023-09-05 signatures=0 X-Proofpoint-Spam-Details: rule=interactive_user_notspam policy=interactive_user score=0 mlxscore=0 spamscore=0 adultscore=0 phishscore=0 bulkscore=0 mlxlogscore=999 suspectscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2308100000 definitions=main-2309050112 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apple.com; h=from : message-id : content-type : mime-version : subject : date : in-reply-to : cc : to : references; s=20180706; bh=Y41Uxp7hR8Z7cdCZJWF9iWLo7hQKQkfEE6MYeQNqD1U=; b=F1K3EoCE15UobSTscdH6apyEqajJnon9mRxEcTVBQElnfY3uo5I5doooPnFbntYAG/Ro egqEysRk31bH8jagxRx6tBRRvhe5MHzb4qOC42sPGAC11Bb9DlcGBozcjqjDiDNBao4f 0Oh/jdsRzPWMgaCvXRrAwxxmn2yDU0ahlE4VF5paEEvfu2iS8G6PmKyhMeY2FfYrLyvO O50PaKSSxeGcmYS5H0rV1OaXbhaFRWfHnvf/BHy/Sz1+0PsQoXqk/D1lrdXiiJxw8BG0 On5pnLDes6e2d0rK21NYp6NeJXMD2yWFhEWWyedH2inxusw11Hotf03c+dMci3wOAQAQ yA== X-Va-A: X-Va-T-CD: ee50c839d80393d0679506f9ba71f6b0 X-Va-E-CD: 938c8e4fd76e3e013edeb3d41379f883 X-Va-R-CD: 8a2faf3de2027b4a0bc7941d26d4bbde X-Va-ID: bace366a-0cad-461b-889b-97ff0ce605b1 X-Va-CD: 0 X-V-A: X-V-T-CD: ee50c839d80393d0679506f9ba71f6b0 X-V-E-CD: 938c8e4fd76e3e013edeb3d41379f883 X-V-R-CD: 8a2faf3de2027b4a0bc7941d26d4bbde X-V-ID: f4fd58cd-f48d-4ea1-abd9-8d71cca835f5 X-V-CD: 0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.601,18.0.957 definitions=2023-09-05_10:2023-09-05,2023-09-05 signatures=0 From: Alastair Houghton Message-id: <267261EB-1DFA-4072-89F0-B62F5DDE5F09@apple.com> Content-type: multipart/alternative; boundary="Apple-Mail=_647605E4-302F-43D1-8708-4D03D6F15BB2" MIME-version: 1.0 (Mac OS X Mail 16.0 \(3774.100.2.1.4\)) Date: Tue, 05 Sep 2023 13:57:57 +0100 In-reply-to: <20230810155115.GT4163@brightrain.aerifal.cx> Cc: musl@lists.openwall.com To: Rich Felker References: <1390B046-C845-406F-8AED-620F2DD16BC0@apple.com> <20230810155115.GT4163@brightrain.aerifal.cx> X-Mailer: Apple Mail (2.3774.100.2.1.4) Subject: Re: [musl] setlocale() again --Apple-Mail=_647605E4-302F-43D1-8708-4D03D6F15BB2 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 On 10 Aug 2023, at 16:51, Rich Felker wrote: >=20 > On Thu, Aug 10, 2023 at 04:41:38PM +0100, Alastair Houghton wrote: >> I spent some time today looking at the setlocale() problem and >> thought I=E2=80=99d put some notes down in an email. [snip] > At this point, it's been quite a while since I looked at the > mechanisms. If you'd like to help move this forward, rather than > starting with a patch, writing a high-level natural language > description of how you'd make the changes (in terms of musl's current > internal representation for locale state) would be the most helpful. > If I'm forgetting and there's already such a good description, just > digging it up and citing it might be fine. I wrote something up here: https://gist.github.com/al45tair/15c3ade52b09d0cad67074176ad43e4a Let me know what you think; I can update the document there until = we=E2=80=99re happy that we=E2=80=99ve got the right solution, then I = should be able to create a patch and get the relevant permission from my = employer to submit it. Kind regards, Alastair. --Apple-Mail=_647605E4-302F-43D1-8708-4D03D6F15BB2 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 On 10 Aug = 2023, at 16:51, Rich Felker <dalias@libc.org> = wrote:

On Thu, Aug 10, 2023 at = 04:41:38PM +0100, Alastair Houghton wrote:
I spent some time today looking at the = setlocale() problem and
thought I=E2=80=99d put some notes down in an = email.

[snip]
=
At this = point, it's been quite a while since I looked at the
mechanisms. If you'd = like to help move this forward, rather than
starting with a patch, = writing a high-level natural language
description of how you'd make the changes (in terms of = musl's current
internal representation for locale state) would be the most = helpful.
If I'm forgetting and = there's already such a good description, just
digging it up and citing = it might be fine.

I wrote = something up here:

https://gist.github.com/al45tair/15c3ade52b09d0cad67074176ad43e4a

Let me know what you think; I can update the = document there until we=E2=80=99re happy that we=E2=80=99ve got the = right solution, then I should be able to create a patch and get the = relevant permission from my employer to submit = it.

Kind = regards,

Alastair.

= --Apple-Mail=_647605E4-302F-43D1-8708-4D03D6F15BB2--