[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Lynx-dev] [PATCH] Sedecimal entities broken
From: |
Thomas Dickey |
Subject: |
Re: [Lynx-dev] [PATCH] Sedecimal entities broken |
Date: |
Sun, 19 Feb 2012 20:13:53 -0500 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
On Mon, Feb 20, 2012 at 12:47:36AM +0000, Thorsten Glaser wrote:
> Hi! Reduced testcase:
>
> address@hidden:~ $ /usr/bin/lynx -width=90 -dump x.htm
> I can see youඕre not fully up to standard yet, and wish you get better
> soon ᄎ
>
> I can see you’re not fully up to standard yet, and wish you get better
> soon ☺
> address@hidden:~ $ /usr/obj/gnu/usr.bin/lynx/lynx -width=90 -dump x.htm
> I can see you’re not fully up to standard yet, and wish you get better
> soon ☺
>
> I can see you’re not fully up to standard yet, and wish you get better
> soon ☺
> address@hidden:~ $ cat x.htm
>
> <html><head><title>x</title></head><body>
> <p>I can see you’re not fully up to standard yet, and wish you get
> better soon ☺</p>
> <p>I can see you’re not fully up to standard yet, and wish you get better
> soon ☺</p>
> </body></html>
>
> Fix:
>
> Index: src/UCdomap.c
> ===================================================================
> RCS file: /cvs/src/gnu/usr.bin/lynx/src/UCdomap.c,v
> retrieving revision 1.11
> diff -u -p -r1.11 UCdomap.c
> --- src/UCdomap.c 19 Feb 2012 19:38:18 -0000 1.11
> +++ src/UCdomap.c 20 Feb 2012 00:46:07 -0000
> @@ -2498,7 +2498,7 @@ BOOL UCScanCode(UCode_t *target, const c
>
> errno = 0;
> *target = 0;
> - lcode = strtol(source, &endptr, isHex ? 12 : 10);
> + lcode = strtol(source, &endptr, isHex ? 16 : 10);
ouch. I wonder what I was thinking about (this is dev.10 of course,
the previous report was dev.7).
thanks.
--
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net
signature.asc
Description: Digital signature