From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/503 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: extended locale extentions Date: Tue, 11 Oct 2011 00:13:17 -0400 Message-ID: <20111011041317.GV132@brightrain.aerifal.cx> References: <20111010141704.GT24939@port70.net> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1318306883 24912 80.91.229.12 (11 Oct 2011 04:21:23 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 11 Oct 2011 04:21:23 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-504-gllmg-musl=m.gmane.org@lists.openwall.com Tue Oct 11 06:21:17 2011 Return-path: Envelope-to: gllmg-musl@lo.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by lo.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1RDTq8-0000ja-Om for gllmg-musl@lo.gmane.org; Tue, 11 Oct 2011 06:21:16 +0200 Original-Received: (qmail 22054 invoked by uid 550); 11 Oct 2011 04:21:16 -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 22046 invoked from network); 11 Oct 2011 04:21:16 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:503 Archived-At: On Mon, Oct 10, 2011 at 04:25:01PM +0200, aep wrote: > On Mon, 10 Oct 2011 16:17:04 +0200, Szabolcs Nagy wrote: > >>that is isspace_l, isupper_l , etc... > >these are standard, not c standard, but posix standard > > i used the wrong examples. what i meant was > strtol_l, strtoul_l, strtoll_l, possibly others... My thought for these, since they don't need to conform to any standard, is just to weak alias them as: weak_alias(strtol, strtol_l); etc. Obviously the types are wrong but it doesn't matter because they won't use the locale_t argument anyway, and as long as _GNU_SOURCE is not defined in the source file, the conflicting prototype in the header won't matter. > >i wonder if a dummy implementation is ok > >eg > >#define foo_l(c, l) foo(c) > >(maybe with a check if l is the c/posix locale) > > > that's pretty much what is there. It's good enough for me (as my use > case only has one locale), but i was wondering if its ok before i > work on a patch. Actually handling them with macros would probably work just as well... Rich