On Mon, Oct 07, 2013 at 11:39:57AM -0700, Pavel Sanda wrote: > Enrico Forestieri wrote: > > The problem here is that to_utf8() (and most probably all other > > conversion routines) is not thread safe, maybe due to the static > > output buffer in iconv_convert(). > > Huh, iconv strikes back. We already knew that iconv is not thread safe > and I remember we already mutexed conversion routines. Maybe the mutex > was not put on high enough level?
I don't remember the mutex story, however the problem is surely due to the static output buffer in iconv_convert. The question is: why was it made static? -- Enrico