mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 09:08:59 +00:00
gdb/
* charset.c (wchar_iterate) <EILSEQ>: Return any possibly converted characters.
This commit is contained in:
@@ -648,8 +648,13 @@ wchar_iterate (struct wchar_iterator *iter,
|
||||
switch (errno)
|
||||
{
|
||||
case EILSEQ:
|
||||
/* Invalid input sequence. Skip it, and let the caller
|
||||
know about it. */
|
||||
/* Invalid input sequence. We still might have converted a
|
||||
character; if so, return it. */
|
||||
if (out_avail < out_request * sizeof (gdb_wchar_t))
|
||||
break;
|
||||
|
||||
/* Otherwise skip the first invalid character, and let the
|
||||
caller know about it. */
|
||||
*out_result = wchar_iterate_invalid;
|
||||
*ptr = iter->input;
|
||||
*len = iter->width;
|
||||
|
||||
Reference in New Issue
Block a user