mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-08-12 13:10:45 +02:00
minor fixes; readline API change for rl_completer_word_break_characters ; readline fixes for MSVC
This commit is contained in:
@@ -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 == '"')
|
||||
|
||||
Reference in New Issue
Block a user