From: Rich Felker <dalias@aerifal.cx>
To: musl@lists.openwall.com
Subject: Re: extended locale extentions
Date: Tue, 11 Oct 2011 00:13:17 -0400 [thread overview]
Message-ID: <20111011041317.GV132@brightrain.aerifal.cx> (raw)
In-Reply-To: <db91a0db355d632f3bec21e0f0d826ec@exys.org>
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
prev parent reply other threads:[~2011-10-11 4:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-10 14:07 aep
2011-10-10 14:17 ` Szabolcs Nagy
2011-10-10 14:25 ` aep
2011-10-11 4:13 ` Rich Felker [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20111011041317.GV132@brightrain.aerifal.cx \
--to=dalias@aerifal.cx \
--cc=musl@lists.openwall.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).