Hi,

Am Samstag, 30. September 2017 11:57:46 UTC+2 schrieb Guy Rutenberg:
>
> Looking again at wxWidgets' ticket, I saw that hugin does not call 
> wxSetlocale, which means that it doesn't properly inherit the locale from 
> the environment. I've applied the following patch
>
Calling wxSetlocale on Windows have unwanted side effects. After it the 
numbers are not correctly formatted.

and it now wxExecute behaves properly. According to libc's docs this should 
> be done in every localized program.
>
> A C program inherits its locale environment variables when it starts up. 
>> This happens automatically. However, these variables do not automatically 
>> control the locale used by the library functions, because ISO C says that 
>> all programs start by default in the standard ‘C’ locale. To use the 
>> locales specified by the environment, you must call setlocale. Call it 
>> as follows: 
>>
>> setlocale (LC_ALL, "");
>>
>> to select a locale based on the user choice of the appropriate 
>> environment variables. 
>>
> Does also setlocale work, or have it to be wxSetLocale? (setlocale works 
here on Windows without the side effects of wxSetlocale).

-- 
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
--- 
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/hugin-ptx/14c8c3cf-965d-4793-8994-f61acdf0a325%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to