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,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 9686 invoked from network); 5 Dec 2023 15:19:43 -0000 Received: from second.openwall.net (193.110.157.125) by inbox.vuxu.org with ESMTPUTF8; 5 Dec 2023 15:19:43 -0000 Received: (qmail 13601 invoked by uid 550); 5 Dec 2023 15:19:39 -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 13564 invoked from network); 5 Dec 2023 15:19:38 -0000 X-Proofpoint-ORIG-GUID: BLbmAJCVB8_dMxqIoPzfQWirkCG0agv7 X-Proofpoint-GUID: BLbmAJCVB8_dMxqIoPzfQWirkCG0agv7 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.619,18.0.997 definitions=2023-12-05_10:2023-12-04,2023-12-05 signatures=0 X-Proofpoint-Spam-Details: rule=interactive_user_notspam policy=interactive_user score=0 adultscore=0 suspectscore=0 malwarescore=0 mlxlogscore=597 phishscore=0 bulkscore=0 mlxscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2312050120 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apple.com; h=content-type : mime-version : subject : from : in-reply-to : date : cc : content-transfer-encoding : message-id : references : to; s=20180706; bh=Q+T7HfQSnwsJhj9tjzbRKrp0cdwHam+ynVQ09s3h7x0=; b=ZyqFikPLFfJd0sdaF7infTrY/7XsaIDLJ0D9LTnt75PoS6ExXwA2P3v1G0k4n9qXYp3M rLIscEwOoZsvo9f0EEC+Qeb6dPIomNNnUkSKCtNQJJ0uaQdRc6DohMSd716ze5DuDqCW c7ilbdLnaM7liRYSkr1ZEazyVTXSl6d2k6Q1QoRhsQTr93jCPhHTWNRuYX0tNKoeolcf O99g9Kb9mxduFDlGyB4hP9KDfkFTNk42A9ljtoUj4GV9RO5qPvS985dt//E+XlHOd89V uEyeulLm2YDu2j4pWevSzGQItop1FbozxFq5rwy79M2Hu5l2zvFAMEFY9Gl9AjEy67fg 7A== X-Va-A: X-Va-T-CD: 14dc138f66d48087821ca031f1b11e6a X-Va-E-CD: 938c8e4fd76e3e013edeb3d41379f883 X-Va-R-CD: 8a2faf3de2027b4a0bc7941d26d4bbde X-Va-ID: 4a1e6136-53d2-4dfa-855d-e5c4ec8d11f7 X-Va-CD: 0 X-V-A: X-V-T-CD: 14dc138f66d48087821ca031f1b11e6a X-V-E-CD: 938c8e4fd76e3e013edeb3d41379f883 X-V-R-CD: 8a2faf3de2027b4a0bc7941d26d4bbde X-V-ID: 7407cdbb-cf55-44bb-9744-222d5b00e651 X-V-CD: 0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.619,18.0.997 definitions=2023-12-05_10:2023-12-04,2023-12-05 signatures=0 Content-type: text/plain; charset=utf-8 MIME-version: 1.0 (Mac OS X Mail 16.0 \(3774.300.61.1.2\)) From: Alastair Houghton In-reply-to: <25283A51-7FB1-4CB1-9C26-DF06F69922BC@apple.com> Date: Tue, 05 Dec 2023 15:19:15 +0000 Cc: Rich Felker Content-transfer-encoding: quoted-printable Message-id: References: <1390B046-C845-406F-8AED-620F2DD16BC0@apple.com> <20230810155115.GT4163@brightrain.aerifal.cx> <267261EB-1DFA-4072-89F0-B62F5DDE5F09@apple.com> <3DD8D02A-0802-494E-B9E8-F00B457B86F6@apple.com> <25283A51-7FB1-4CB1-9C26-DF06F69922BC@apple.com> To: musl@lists.openwall.com X-Mailer: Apple Mail (2.3774.300.61.1.2) Subject: Re: [musl] setlocale() again > Maybe I=E2=80=99ve missed a reply somewhere along the lines; here=E2=80=99= s a tentative patch that just does the simple thing of making = setlocale(LC_ALL, "") pick the C.UTF-8 locale if it=E2=80=99s unable to = find the locale specified in the environment. [snip] Hah. So, testing that patch, having removed my hacks to avoid using = Musl=E2=80=99s locale support, I find it doesn=E2=80=99t actually work = (for two reasons; one, NULL doesn=E2=80=99t mean not found, it means = =E2=80=9Cuse =E2=80=98C=E2=80=99=E2=80=9D; 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=E2=80=99ll come back with an updated patch in a bit. Kind regards, Alastair.