bug-gnu-libiconv
[Top][All Lists]
Advanced

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

Re: [bug-gnu-libiconv] Mac OS X UTF-8 to WCHAR_T and vice versa not work


From: Bruno Haible
Subject: Re: [bug-gnu-libiconv] Mac OS X UTF-8 to WCHAR_T and vice versa not working
Date: Thu, 02 Nov 2017 17:24:39 +0100
User-agent: KMail/5.1.3 (Linux/4.4.0-97-generic; KDE/5.18.0; x86_64; ; )

Hi,

Marco Martins wrote:
> Hi, I am using libiconv as a cross-platform independent library to convert
> UTF-8 to WCHAR_T and vice versa. Currently building only to Windows, Unix
> (Ubuntu 16.04) and Mac OS X (10.12.6 Sierra).
> When testing to see if the conversion was working I found out that on Mac
> OS X it was failing.

The NEWS file states that there was a bug in the wchar_t converter in versions
< 1.14. I guess that the version from MacOS that you use is the one from Apple
and that they have not yet incorporated the fix.

> . Currently, I am using the UTF-8 to UCS-4-INTERNAL workaround, although,
> the setlocal(LC_ALL, "en_US.UTF-8")

The README indeed explicitly states the limitations of using 'wchar_t'
as an encoding specifier:

    Locale dependent, in terms of 'char' or 'wchar_t'
        (with machine dependent endianness and alignment, and with OS and
        locale dependent semantics)
        char, wchar_t

Bruno




reply via email to

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