mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-07 01:51:14 -03:00
Fix for annoying error message when converting out of range escape
https://github.com/fish-shell/fish-shell/issues/1107
This commit is contained in:
@@ -1197,7 +1197,7 @@ static size_t read_unquoted_escape(const wchar_t *input, wcstring *result, bool
|
||||
case L'U':
|
||||
{
|
||||
chars=8;
|
||||
max_val = WCHAR_MAX;
|
||||
max_val = mini(WCHAR_MAX, 0x10FFFF); // Largest Unicode code point - see #1107
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user