commit bash-20171006 snapshot

This commit is contained in:
Chet Ramey
2017-10-11 15:32:49 -04:00
parent 45cccbbc0e
commit c8cd6da325
21 changed files with 3733 additions and 3688 deletions
+4 -1
View File
@@ -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;