From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id ED960385357E; Tue, 2 Aug 2022 14:30:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org ED960385357E From: "fweimer at redhat dot com" To: glibc-bugs@sourceware.org Subject: [Bug locale/16621] C.UTF-8 locales should be regarded like C w.r.t. $LANGUAGE precedence Date: Tue, 02 Aug 2022 14:30:57 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: locale X-Bugzilla-Version: 2.35 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: fweimer at redhat dot com X-Bugzilla-Status: REOPENED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: security- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: glibc-bugs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-bugs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Aug 2022 14:30:58 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D16621 --- Comment #12 from Florian Weimer --- (In reply to Vincent Lef=C3=A8vre from comment #11) > (In reply to Florian Weimer from comment #10) > > C is special-cased here: > [...] > > if (strcmp (locale, "C") =3D=3D 0) > > return locale; > >=20 > > It looks like the locale name is not embedded in the locale data itself= , so > > identifying C.UTF-8 based on its name might not be so simple here. >=20 > Do you mean that locale is not the string "C.UTF-8" (while setlocale() > returns the expected "C.UTF-8")? There are aliases such as "C.utf8", which we would have to recognize as wel= l. Not doing that would make things worse, I think. --=20 You are receiving this mail because: You are on the CC list for the bug.=