Ulrich Kaminski wrote:
right after initializing xpcom made it work again. But why is mozilla
setting the locale automatically?
Presumably this code in nsXPComInit:
567 // If the locale hasn't already been setup by our embedder,
568 // get us out of the "C" locale and into the system
569 if (strcmp(setlocale(LC_ALL, NULL), "C") == 0)
570 setlocale(LC_ALL, "");
And presumably this is done so that various locale behavior will
actually use the user's locale...
So setlocale() to the locale you want if it's not the default user
locale before initing xpcom seems to be what you need here.
-Boris
_______________________________________________
dev-embedding mailing list
dev-embedding@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-embedding