minor fixes; readline API change for rl_completer_word_break_characters ; readline fixes for MSVC

This commit is contained in:
Chet Ramey
2021-08-19 15:48:31 -04:00
parent cf8298cb22
commit 2adf06d9f8
13 changed files with 68 additions and 18 deletions
+9
View File
@@ -2634,6 +2634,15 @@ _rl_get_keyname (int key)
keyname[i++] = (c / 8) + '0';
c = (c % 8) + '0';
}
/* These characters are valid UTF-8; convert them into octal escape
sequences as well. This changes C. */
else if (c >= 160)
{
keyname[i++] = '\\';
keyname[i++] = '0' + ((((unsigned char)c) >> 6) & 0x07);
keyname[i++] = '0' + ((((unsigned char)c) >> 3) & 0x07);
c = (c % 8) + '0';
}
/* Now, if the character needs to be quoted with a backslash, do that. */
if (c == '\\' || c == '"')