mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-08-06 10:12:38 +02:00
commit bash-20171006 snapshot
This commit is contained in:
+4
-1
@@ -229,7 +229,10 @@ singlebyte:
|
||||
else
|
||||
{
|
||||
m = mbrtowc (&wc, string + start, end - start, &state);
|
||||
if (MB_INVALIDCH (m) || m == 1)
|
||||
/* Have to go through case conversion even for single-byte chars, to
|
||||
accommodate single-byte characters where the corresponding upper
|
||||
or lower case equivalent is multibyte. */
|
||||
if (MB_INVALIDCH (m))
|
||||
{
|
||||
wc = (unsigned char)string[start];
|
||||
goto singlebyte;
|
||||
|
||||
Reference in New Issue
Block a user