mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-12-01 12:07:46 +01:00
commit bash-20171006 snapshot
This commit is contained in:
1 parent
45cccbbc0e
commit
c8cd6da325
21 files changed
+3733
-3688
No files matched your search
+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