This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/15459] RFE: Add |localeconv_l()| to allow porting of FreeBSD/OSX applications...


http://sourceware.org/bugzilla/show_bug.cgi?id=15459

--- Comment #11 from Wendy Llin <wendlin1974 at gmail dot com> ---
(In reply to Jakub Jelinek from comment #2)
> Just use
> locale_t old = uselocale (l);
> res = localeinfo (...);
> uselocale (old);
> instead.  It doesn't make sense to add *_l variant to every library function.

The workaround is useless. On OSX uselocale() is expensive (~ 200 times the
time of a single malloc(100)) and adding manual code to copy the data requires
a free function which requires a API redesign.

>From a point of portability we would have to create different code paths, one
for OSX/FreeBSD/AIX/Solaris 11.1/Illumos and one for Linux. That expense
doesn't pay off.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]