[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: slink's dpkg

Enrique Zanardi wrote:
> > +  putenv("LANG=C");
> >    setlocale(LC_ALL, "");
> You may as well join those two and simply do:
>      setlocale(LC_ALL, "C");

For some reason that doesn't work, dpkg-deb keeps segfaulting. I think that
setlocale() calls don't have any effect in forked processes, that is, when
you setlocale() something and afterwards fork() a process, the latter one
won't know about the previously set locale environment. It will when using
putenv(). Strange.


Reply to: