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

Jeremy Allison jra at samba.org
Thu Feb 3 11:38:46 MST 2011

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).


More information about the samba-technical mailing list