mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 05:28:49 +00:00
Changes full_escape to not generate \x escapes for non-ASCII characters.
Partially reverts 51de269
. Fixes #1225
This commit is contained in:
parent
5f11854286
commit
06eb271bda
1 changed files with 2 additions and 1 deletions
|
@ -756,8 +756,9 @@ static wcstring full_escape(const wchar_t *in)
|
|||
{
|
||||
out.push_back(c);
|
||||
}
|
||||
else if (c < 256)
|
||||
else if (c <= ASCII_MAX)
|
||||
{
|
||||
// See #1225 for discussion of use of ASCII_MAX here
|
||||
append_format(out, L"\\x%.2x", c);
|
||||
}
|
||||
else if (c < 65536)
|
||||
|
|
Loading…
Reference in a new issue