bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UTF-8 Encode problems with \u \U


From: Andreas Schwab
Subject: Re: UTF-8 Encode problems with \u \U
Date: Sat, 18 Feb 2012 11:11:05 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (gnu/linux)

John Kearney <dethrophes@web.de> writes:

> Fix:
> iff --git a/builtins/printf.def b/builtins/printf.def
> index 9eca215..b155160 100644
> --- a/builtins/printf.def
> +++ b/builtins/printf.def
> @@ -859,7 +859,7 @@ tescape (estart, cp, lenp, sawc)
>          *cp = '\\';
>          return 0;
>        }
> -    if (uvalue <= UCHAR_MAX)
> +    if (uvalue <= CHAR_MAX)

CHAR_MAX has nothing at all to do with UTF-8.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]