Nala Ginrut <nalagin...@gmail.com> writes:
> According to our talking on IRC. I dropped locale specific procedure
> setlocale in my code. I choose (web http) write-date instead. 
> And my conclusion is to avoid locale specific things in multi-thread
> context.

It's okay to use locale-dependent operations in a multi-thread program,
as long as you use only one locale for the entire process.

Even in a single-thread program, locale-dependent operations are not
appropriate for protocol use, IMO anyway.  For security reasons,
protocol code should be as simple as possible, but locale-sensitive code
tends to be much more complex.  Also, it seems to me that locale
formatters/parsers are designed for _human_ interfaces, which have a
fundamentally different set of requirements than a protocol interface.

   Regards,
     Mark

Reply via email to