kitty/tools/utils/shlex
devangpratap c7226d702e Do not drop an escaped U+FFFD in the shlex lexer
write_escaped_ch compares the decoded rune against utf8.RuneError to
detect invalid UTF-8, but a literal U+FFFD decodes to that same rune, so
an escaped replacement character was silently deleted. The size returned
by DecodeRuneInString already tells the two apart: invalid bytes decode
with a size of one, a real U+FFFD with a size of three. Keep the rune
when the size is greater than one.
2026-09-21 12:05:20 -04:00
..
ansi_c_escapes.go
shlex.go Do not drop an escaped U+FFFD in the shlex lexer 2026-09-21 12:05:20 -04:00
shlex_test.go Do not drop an escaped U+FFFD in the shlex lexer 2026-09-21 12:05:20 -04:00