From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/6479 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: [PATCH] implement a private state for the uchar.h functions Date: Mon, 10 Nov 2014 22:21:10 -0500 Message-ID: <20141111032110.GG22465@brightrain.aerifal.cx> References: <1415528228.2457.1188.camel@eris.loria.fr> 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 1415676094 17400 80.91.229.3 (11 Nov 2014 03:21:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Nov 2014 03:21:34 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-6492-gllmg-musl=m.gmane.org@lists.openwall.com Tue Nov 11 04:21:27 2014 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 1Xo21G-0003h8-Hq for gllmg-musl@m.gmane.org; Tue, 11 Nov 2014 04:21:26 +0100 Original-Received: (qmail 17809 invoked by uid 550); 11 Nov 2014 03:21:24 -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 17790 invoked from network); 11 Nov 2014 03:21:23 -0000 Content-Disposition: inline In-Reply-To: <1415528228.2457.1188.camel@eris.loria.fr> User-Agent: Mutt/1.5.21 (2010-09-15) Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:6479 Archived-At: On Sun, Nov 09, 2014 at 11:18:08AM +0100, Jens Gustedt wrote: > The C standard is imperative on that: > > 7.28.1 ... If ps is a null pointer, each function uses its own internal > mbstate_t object instead, which is initialized at program startup to > the initial conversion state; Thanks. Actually I originally had this functionality and removed it because it seemed to be unnecessary, due to the requirement being buried in that introductory text rather than the descriptions of the individual functions. I figured the committee had just intentionally decided not to copy this backwards functionality from the old multibyte functions into the new uchar ones, but sadly that's not the case... Rich