|
From: | Gonzalo Garramuño |
Subject: | Re: Gettext Mac GUI application returning wrong characters |
Date: | Sat, 11 Jul 2020 22:07:29 -0300 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 |
El 11/07/20 a las 07:18, Bruno Haible escribió:
The fix, now, is to add this code before std::locale::global(std::locale("")): #if defined __APPLE__ && defined __MACH__ setenv ("LC_CTYPE", "UTF-8", 1); #endif and include <stdlib.h>.
Hello, Bruno.One thing I noticed with this work-around is that it does not address LC_NUMERIC. On the Spanish locale, floating point numbers are written with a comma instead of a period. Leaving LC_NUMERIC as C locale (as it comes both from the GUI and the terminal) does not fix it. However, Mac Preferences show the numeric values with commas in their floating point counterparts.
Is there a work around that?
[Prev in Thread] | Current Thread | [Next in Thread] |