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

Re: [idn] UTF-8 / RACE



yet another reason why trying to overload gethostbyname() is a bad idea.

> It is very unlikely that gethostbyname() or any other function would be able
> to make that determination except in simplistic cases. Many operating-system
> provided locale models are not thread-safe, and threaded applications then
> use other mechanisms that the OS may not be aware of. Internationalization
> libraries, as another example, commonly provide their own locale model and
> applications will use the library's rather than the OS.