mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-21 03:21:16 -03:00
fish_key_reader: use char_to_symbol for verbose output
byte_to_symbol was broken because it didn't iterate by byte, it
iterated by rust-char, which is a codepoint.
So it failed for everything outside of ascii and, because of a
mistaken bound, ascii chars from 0x21 to 0x2F ("!" to "/" - all the punctuation).
char_to_symbol will print printable codepoints as-is and
others escaped. This is okay - something like `decoded from: +` or
`decoded from: ö` is entirely understandable, there is no need to tell
you that "ö" is \xc3\xb6.
This reverts commit 423e5f6c03.
This commit is contained in:
@@ -37,6 +37,9 @@ sleep(0.020)
|
||||
send("\x1B")
|
||||
expect_str("# decoded from: \\e\r\n")
|
||||
expect_str("bind escape 'do something'\r\n")
|
||||
send("ö")
|
||||
expect_str("# decoded from: ö\r\n")
|
||||
expect_str("bind ö 'do something'\r\n")
|
||||
send("\u1234")
|
||||
expect_str("bind ሴ 'do something'\r\n")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user