Re: setlocale() in a module/extension library

2005-08-24 Thread Damien Elmes
"Martin v. Löwis" <[EMAIL PROTECTED]> writes: > IOW: feel free to invoke setlocale in your library. It will likely > work in many cases, but may break in some. So you should atleast > document that this is what your library does. Thanks for the advice. I ended up implementing it in the library, w

Re: setlocale() in a module/extension library

2005-08-23 Thread Martin v. Löwis
Damien Elmes wrote: > My question is this: it would be nice if every user of my library > didn't need to add the above two lines to their code. But on the other > hand, I'm unsure of the implications of modifying the locale from > within a module, and it doesn't seem very clean. Would calling > set

Re: setlocale() in a module/extension library

2005-08-23 Thread Jarek Zgoda
Damien Elmes napisał(a): > My question is this: it would be nice if every user of my library > didn't need to add the above two lines to their code. But on the other > hand, I'm unsure of the implications of modifying the locale from > within a module, and it doesn't seem very clean. Would calling

setlocale() in a module/extension library

2005-08-23 Thread Damien Elmes
Hi folks, I've got a module + C extension which provides on screen display support in X, via libxosd (http://repose.cx/pyosd). I've recently had a report of trouble where a Russian user was unable to display any Russian text. I've managed to resolve the issue by inserting the following two lines