[vlc-devel] commit: live: fix unsafe use of se tlocale() ( Rémi Denis-Courmont )
Ross Finlayson
finlayson at live555.com
Mon Jul 14 01:19:22 CEST 2008
>Le dimanche 13 juillet 2008 16:36:49 Ross Finlayson, vous avez écrit :
>> (However, from what I can tell, your new calls to
> > "newlocale()" and "freelocale()" are not
>> portable. For example, although Mac OS X knows
>> about them, FreeBSD does not.)
>
>They are in POSIX.2008.
Unfortunately many (perhaps most) developers
won't have this. (For example, FreeBSD 6.3
doesn't have these; I don't know about 7.*.)
Do you know of a preprocessor definition - e.g.,
#ifdef POSIX_mumble
- that can reliably be used to check whether code
has "xlocale.h" (and "newlocale()" and
"freelocale()") available?
--
Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
More information about the vlc-devel
mailing list