From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/14644 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Jens Gustedt Newsgroups: gmane.linux.lib.musl.general Subject: Re: printf doesn't respect locale Date: Wed, 11 Sep 2019 12:07:22 +0200 Organization: inria.fr Message-ID: <20190911120722.6ed0b3fb@inria.fr> References: <20190909175452.GO9017@brightrain.aerifal.cx> <20190910163143.GI22009@port70.net> <20190910184312.GJ22009@port70.net> <539924f1-6cdb-0652-e9bf-4c5e6922823d@adelielinux.org> <20190911100159.GK22009@port70.net> Reply-To: musl@lists.openwall.com Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/zO8pFPMXt4nhe8LxuL0Kqa8"; protocol="application/pgp-signature"; micalg=pgp-sha1 Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="61885"; mail-complaints-to="usenet@blaine.gmane.org" Cc: musl@lists.openwall.com Original-X-From: musl-return-14660-gllmg-musl=m.gmane.org@lists.openwall.com Wed Sep 11 12:07:37 2019 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.89) (envelope-from ) id 1i7zXF-000Fy8-5l for gllmg-musl@m.gmane.org; Wed, 11 Sep 2019 12:07:37 +0200 Original-Received: (qmail 7260 invoked by uid 550); 11 Sep 2019 10:07:35 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 7242 invoked from network); 11 Sep 2019 10:07:34 -0000 X-IronPort-AV: E=Sophos;i="5.64,493,1559512800"; d="scan'208";a="401225139" In-Reply-To: <20190911100159.GK22009@port70.net> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) X-Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAAXNSR0IArs4c6QAAACRQTFRFERslNjAsLTE9Ok9wUk9TaUs8iWhSrYZkj42Rz6aD3sGZ Xref: news.gmane.org gmane.linux.lib.musl.general:14644 Archived-At: --Sig_/zO8pFPMXt4nhe8LxuL0Kqa8 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hello Szabolcs, On Wed, 11 Sep 2019 12:01:59 +0200 Szabolcs Nagy wrote: > > We would be *extremely* disappointed if LC_NUMERIC would never be > > supported in upstream musl. We would have to maintain a patch to > > add LC_NUMERIC support when the rest of musl's locale support is > > developed. =20 >=20 > i consider this a posix/iso c bug. I agree > there is a need for printf with fixed C.UTF-8 locale in > library code that implements a file format, language or > protocol that cannot be locale dependent. >=20 > in iso c there is no way to get this. >=20 > in posix 2008 you have to jump through very bizarre hoops > to get it (in a slow and resource wasting way). >=20 > so the world is full of printf users that just expect > fixed C.UTF-8 locale and hope nobody calls setlocale. >=20 > telling ppl that their code is wrong does not help unless > you provide an alternative, but introducing new api for > this would not be portable. I think that WG14 would be happy to hear any suggestions how we could get out of this trap, a proposal for C2x would even be better. Thanks Jens --=20 :: INRIA Nancy Grand Est ::: Camus ::::::: ICube/ICPS ::: :: ::::::::::::::: office Strasbourg : +33 368854536 :: :: :::::::::::::::::::::: gsm France : +33 651400183 :: :: ::::::::::::::: gsm international : +49 15737185122 :: :: http://icube-icps.unistra.fr/index.php/Jens_Gustedt :: --Sig_/zO8pFPMXt4nhe8LxuL0Kqa8 Content-Type: application/pgp-signature Content-Description: Digitale Signatur von OpenPGP -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQSN9stI2OFN1pLljN0P0+hp2tU34gUCXXjHWgAKCRAP0+hp2tU3 4nIqAJ9iGQArWHc1Rf+dipNZ3RE0/Q0ceACdFIByOA2GvxC+tfqLpr+kCDhbjUU= =AWX9 -----END PGP SIGNATURE----- --Sig_/zO8pFPMXt4nhe8LxuL0Kqa8--