From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/7895 Path: news.gmane.org!not-for-mail From: Harald Becker Newsgroups: gmane.linux.lib.musl.general Subject: Re: [PATCH] Byte-based C locale, draft 1 Date: Sun, 07 Jun 2015 00:39:00 +0200 Message-ID: <55737684.7020803@gmx.de> References: <20150606214007.GA17398@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1433630373 6753 80.91.229.3 (6 Jun 2015 22:39:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 6 Jun 2015 22:39:33 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-7908-gllmg-musl=m.gmane.org@lists.openwall.com Sun Jun 07 00:39:20 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1Z1MkF-0005yV-UU for gllmg-musl@m.gmane.org; Sun, 07 Jun 2015 00:39:16 +0200 Original-Received: (qmail 21779 invoked by uid 550); 6 Jun 2015 22:39:14 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 21755 invoked from network); 6 Jun 2015 22:39:13 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 In-Reply-To: <20150606214007.GA17398@brightrain.aerifal.cx> X-Provags-ID: V03:K0:YC0mtfbp3tJdG2e/+5Tp7jDmNHJaTFt0rgwS+Ja1jp+qlcI6aW/ 167ADTrCjlc/s4VOtFVqqnrNzZIUJJz6ujIhL5vNs4Tz906MCkEgTrylJvgtqBkKLC7EByj Zr2XVTCBY2KCT79DjrXv1zQaEStRJ1n/YKXWXRRyMxblJvdU5+QTUiKyaliWbKA/JaxWedq lUcnwXdukUw05J4fbu4yA== X-UI-Out-Filterresults: notjunk:1;V01:K0:oxnepOP5tAc=:9APiP3yfaEvm4GRC3+zay4 HYPz3MAs8NDd9Ghpr/8rt1EI+p5C+AyGUeEA+pPKyNWNZa4xKoDYmh0+Ff4YdV4Y8aoxZ98xB CW72i3fgnCGA1uLvEDqCjN5NWUa8NUp64OMoR6BVHSffZEWq7xcXghoVwutjijWY173WQ4Jl2 AUspoQNO/9VruZ1fvAt22z5X9Jf65ZBr2L+WiSNrV7s05iD91rwwaOpu2ShBQi4ngef6TJilD 2/dKitP3PVjr9soexkV9WkQyhDA8waTH3I3jZx5jRbz6jAzjr6peJ21WNhqZPo0WSbNdu/blJ kI7+86xp+HJijxT0TURa2biScaJ79QqfzbHs5q/q/O2raw3nH4TWdKZxMIapF19+sjsPNsJoY ccjpIj8qIOlhOS/4s7yPo7tWs4AC2836eTSeEuIjR5O3GrI0UhWxGdfrB3jcu7VQBTLaoS7lP Ln/AxWW6+Y/E3/DDt8O4qYidZRC0vrei7jeWJc+XWwKHTp2h6N1JIt6O/JW6x/CfIqXOWAotR yyYjf/DGh5Wk1inff3HXRr5bcQNoE39IhJt7Kl9bxMrgoR69h8sfcZmdVUYvG7cAKslSG0lB9 edvWY5ruJXlIwPGYsf/fFsLhIx6E5zCvxZ6Q9yWWh1wK0w6TTOBn7r0PXFO/90ixLBOvCnN88 YNkSypp1MtKa0qXEKg5sx29a62v6/XyxfApPV+bx9iRUJo+G//xuFoMUhKJbE2iWUn0M= Xref: news.gmane.org gmane.linux.lib.musl.general:7895 Archived-At: Hi Rich ! On 06.06.2015 23:40, Rich Felker wrote: > Attached is the first draft of a proposed byte-based C locale. The > patch is about 400 lines but most of it is context, because it's > basically a lot of tiny changes spread out over lots of files. Sorry for my hopping in. I like musl, but I really dislike all this wchar_t and locale management. Ok, I see it is required for POSIX compatibility, so I have to accept the existence of this stuff. If linking statically, I'm able to avoid most of this and this code never gets in, but when linking shared it makes all into the shared library (which is my point of criticism). So I like to see a build switch to disable all this locale stuff, assuming just bare char type and sole only C / UTF-8 locale, with a minimum on locale overhead (all locale functions should just fail except for there very simple / standard usage cases). Is there any chance to see such a build switch in the main stream, or do I really need to create an maintain a separate patch for this (the hard way)? -- Harald