bug-gettext
[Top][All Lists]
Advanced

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

Re: Gettext Mac GUI application returning wrong characters


From: gga
Subject: Re: Gettext Mac GUI application returning wrong characters
Date: Sat, 11 Jul 2020 08:12:53 -0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0


On 11/7/20 07:18, Bruno Haible wrote:
Hi Gonzalo,

I compiled a sample case that does.
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>.

Bruno
Thank you Bruno for the thorough explanation, sample code and simple workaround!  You are the best.

--
Gonzalo Garramuño




reply via email to

[Prev in Thread] Current Thread [Next in Thread]