From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1670002592; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=r7eJv7MSklpCzaaefGks2zcuyiVP7Er6ZfXruWuN5hg=; b=Snppr4rpqLrNmJLpBsTuykWQ+LZREXK1kZMfN5qRLHoN1qsx+T1hOhqhEPXM6eDtGe1fkU vZeBw/GzagXgRcktqE5x7S4mTyaV4FshCqVD1fPjHUJgn7JfA3rqL7S47o2ST63V3+jjfq QdabdmSgg3mNE7KP3wUGhDnmHfPK2Ok= 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) From: Florian Weimer 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-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: * =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