From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/7898 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: [PATCH] Byte-based C locale, draft 1 Date: Sat, 6 Jun 2015 20:24:59 -0400 Message-ID: <20150607002459.GA17573@brightrain.aerifal.cx> References: <20150606214007.GA17398@brightrain.aerifal.cx> <55737684.7020803@gmx.de> <20150606231057.GZ17573@brightrain.aerifal.cx> <55738979.4030809@gmx.de> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1433636734 28888 80.91.229.3 (7 Jun 2015 00:25:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 7 Jun 2015 00:25:34 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-7911-gllmg-musl=m.gmane.org@lists.openwall.com Sun Jun 07 02:25:17 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 1Z1OOo-0000m2-SD for gllmg-musl@m.gmane.org; Sun, 07 Jun 2015 02:25:15 +0200 Original-Received: (qmail 18138 invoked by uid 550); 7 Jun 2015 00:25:13 -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 18112 invoked from network); 7 Jun 2015 00:25:12 -0000 Content-Disposition: inline In-Reply-To: <55738979.4030809@gmx.de> User-Agent: Mutt/1.5.21 (2010-09-15) Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:7898 Archived-At: On Sun, Jun 07, 2015 at 01:59:53AM +0200, Harald Becker wrote: > On 07.06.2015 01:10, Rich Felker wrote: > >I'm not clear whether your comments are about the proposed byte-based > >C locale (the patch you're replying to) or about existing code in > >musl. Could you be more specific? > > I used the discussion about the locale stuff to hop in and ask for > getting the most wanted feature I'm looking for: OK, so I'll take this as mostly unrelated to the patch. > A bare bone (shared) library without all this locale, wchar_t and > multi byte overhead. Just having a library which always assume C > locale and UTF-8 byte streams, as I ought all this locale stuff is a > big block of code, which I heavily dislike and never use (got my own > UTF-8 handling when and where required). This library with disabled > locale stuff should otherwise still be compatible, just adding the > bare minimum of overhead on those locale functions (allowing only > the single C locale). > > Is that specific enough? It's somewhat more clear what you're talking about, but I'm still not sure what specific pieces of code you would want to omit from libc.so. Which of the following would you want to remove or keep? - UTF-8 encoding and decoding - Character properties - Case mappings - Internal message translation (nl_langinfo strings, errors, etc.) - Message translation API (gettext) - Charset conversion (iconv) - Non-ASCII characters in regex and fnmatch patterns/brackers Rich