From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/8572 Path: news.gmane.org!not-for-mail From: Felix Janda Newsgroups: gmane.linux.lib.musl.general Subject: Re: First feedback on new C locale problems Date: Sat, 26 Sep 2015 06:58:36 +0200 Message-ID: <20150926045836.GA2341@nyan> 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 1443243865 652 80.91.229.3 (26 Sep 2015 05:04:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 26 Sep 2015 05:04:25 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-8584-gllmg-musl=m.gmane.org@lists.openwall.com Sat Sep 26 07:04:24 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 1Zfheg-00045o-ST for gllmg-musl@m.gmane.org; Sat, 26 Sep 2015 07:04:15 +0200 Original-Received: (qmail 32372 invoked by uid 550); 26 Sep 2015 05:04:12 -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 32316 invoked from network); 26 Sep 2015 05:04:07 -0000 Mail-Followup-To: musl@lists.openwall.com Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) Xref: news.gmane.org gmane.linux.lib.musl.general:8572 Archived-At: On 2015-09-09 05:56:48 GMT, Rich Felker wrote: > On Tue, Sep 01, 2015 at 02:32:35AM -0400, Rich Felker wrote: > > What I'd like to do to fix it is just always return "UTF-8" for > > nl_langinfo(CODESET) regardless of locale (rather than returning > > "UTF-8-CODE-UNITS" when in C locale). POSIX places no requirements on > > nl_langinfo that would preclude this, and it seems like it would > > restore the desired properties and fix all the regressions. > > Committed. > > Rich GNU sed seems to care about the output from nl_langinfo: https://bugs.gentoo.org/show_bug.cgi?id=560728 More specifically, so does lib/localecharset.c, which is used in the replacement of re_compile_pattern. Felix