gdb: fix macos >= 14.4 issue with encoding convertion

Seems iconv library in macos >= 14.4 has some changes that appeared to
be breaking in case converting from "wchar_t" encoding.
As macos libiconv supports "UTF-32LE", GDB will use this encoding
instead.
This commit is contained in:
Alexey Lapshin
2024-03-27 22:41:45 +04:00
parent 02a220d713
commit e69f44938c

View File

@ -77,7 +77,7 @@ typedef wint_t gdb_wint_t;
this but which do not support "wchar_t" as an encoding argument to
iconv_open. We put the endianness into the encoding name to avoid
hosts that emit a BOM when the unadorned name is used. */
#if defined (__STDC_ISO_10646__)
#if defined (__STDC_ISO_10646__) || defined(__APPLE__)
#define USE_INTERMEDIATE_ENCODING_FUNCTION
#define INTERMEDIATE_ENCODING intermediate_encoding ()
const char *intermediate_encoding (void);