Re: Disabling localisation for an app



Søren Hauberg schrieb:
> Thanks. I didn't know the 'setlocale' function, which was the one I
> needed. I've just added a 'setlocale (LC_ALL, "C");' to my code, as I
> don't want any locale changes anywhere in the application.

Beware, c++ functionality like iostreams uses its own locale.
So you need to call additionally std::locale::global("C") to change the
c++ locale to "C" on a global scale.


Klaus


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