mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 14:49:38 +08:00
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:
@ -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);
|
||||
|
Reference in New Issue
Block a user