Bug#7519: setlocale() considered harmful in library functions

Jelmer Vernooij jelmer at vernstok.nl
Thu Feb 3 11:53:20 MST 2011


On Thu, 2011-02-03 at 10:38 -0800, Jeremy Allison wrote:
> On Thu, Feb 03, 2011 at 02:06:58PM +0100, sean finney wrote:
> > Hi everyone,
> > 
> > For those not familiar with the background:
> > 
> > https://bugzilla.samba.org/show_bug.cgi?id=7519
> > 
> > Basically, there are functions now part of samba libraries linked
> > by other applications in which there are calls to setlocale(LC_ALL,
> > "C"), and worse, no corresponding calls to return the locale to it's
> > original setting.
> 
> Which specific libraries ? Please list exactly which ones
> so we can fix this asap. Are there any libraries released in
> Samba3.x that do this ? I don't know of any bugs related to
> this and the distributions would howl loudly if this was
> the case (Gnome specifically uses libsmbclient).
This is in Samba 4 code only, where it affects pretty much all
libraries.

Cheers,

Jelmer


More information about the samba-technical mailing list