From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS17314 8.43.84.0/22 X-Spam-Status: No, score=-3.7 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, PDS_RDNS_DYNAMIC_FP,RCVD_IN_DNSWL_MED,RDNS_DYNAMIC,SPF_HELO_PASS, SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id D0A551F601 for ; Fri, 2 Dec 2022 17:36:55 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="THb5hngX"; dkim-atps=neutral Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 8D21A385842A for ; Fri, 2 Dec 2022 17:36:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8D21A385842A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1670002614; bh=r7eJv7MSklpCzaaefGks2zcuyiVP7Er6ZfXruWuN5hg=; h=To:Cc:Subject:References:Date:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=THb5hngXf6TTVPTrt7k8H3WWDGHw0I0RxcdZgNdrGcHOE3zQUPTTujuL7oyd8LEKd CCrgmLen2ulYimI8HlOkHAbEvLKTs6ckJiJVGD8nq+w1LIHkM/xOsiEORh/BJ3GVVY oLvRtMNv+/oKIzKtbamF59wI/Yt1iJYPoLGkEZnE= Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 290D43858C50 for ; Fri, 2 Dec 2022 17:36:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 290D43858C50 Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-223-SQZbGqRLOvanvMN6rviMbA-1; Fri, 02 Dec 2022 12:36:31 -0500 X-MC-Unique: SQZbGqRLOvanvMN6rviMbA-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 0F25B101A52A; Fri, 2 Dec 2022 17:36:31 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.2.16.87]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0650DC1912A; Fri, 2 Dec 2022 17:36:29 +0000 (UTC) To: =?utf-8?B?0L3QsNCx?= Cc: libc-alpha@sourceware.org, Victor Stinner Subject: Re: [PATCH v6 2/2] POSIX locale covers every byte [BZ# 29511] References: <969aa82c8d5904c1d2040bba87abe2f17a0dc647.1667409408.git.nabijaczleweli@nabijaczleweli.xyz> <874jv8dxat.fsf@oldenburg.str.redhat.com> <87wn8344by.fsf@oldenburg.str.redhat.com> <20221128162453.supbaps5ftl2mg3s@tarta.nabijaczleweli.xyz> Date: Fri, 02 Dec 2022 18:36:26 +0100 In-Reply-To: <20221128162453.supbaps5ftl2mg3s@tarta.nabijaczleweli.xyz> (=?utf-8?B?ItC90LDQsSIncw==?= message of "Mon, 28 Nov 2022 17:24:53 +0100") Message-ID: <87mt85pv1h.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.8 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Florian Weimer via Libc-alpha Reply-To: Florian Weimer Errors-To: libc-alpha-bounces+e=80x24.org@sourceware.org Sender: "Libc-alpha" * =D0=BD=D0=B0=D0=B1: > 18-day bump :) > > On Thu, Nov 10, 2022 at 09:10:57AM +0100, Florian Weimer wrote: >> Raised on the musl list here: >> Choice of wchar_t mapping for non-ASCII bytes in the POSIX locale >> > > That thread seems to've been exhausted (at least I don't see anything > fresh in the archive) =E2=80=92 should I just resend with the comments fo= r v7 > applied, or do you have a mapping range you'd rather see given those > givens? I still can't make up my mind. I think the options are: * Some sort of custom encoding (like you posted). * Latin-1 * UTF-8 with surrogate escape encoding (and encouraging POSIX to change aga= in) What argues in favor of the last point is that many, many people are using C.UTF-8 nowadays. And effectively disabling wide/multibyte conversion until you call setlocale does not seem particularly useful. I have a feeling of d=C3=A9j=C3=A0 vu regarding this=E2=80=94I think I have= investigated non-setlocale defaults for wide/multibyte conversion in the past, but can't find the previous discussion. Thanks, Florian