On Mon, Feb 20, 2012 at 12:47:36AM +0000, Thorsten Glaser wrote:
> Hi! Reduced testcase:
> 
> tg@blau:~ $ /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 ☺
> tg@blau:~ $ /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 ☺
> tg@blau:~ $ cat x.htm                                                         
>            
> <html><head><title>x</title></head><body>
> <p>I can see you&#x2019;re not fully up to standard yet, and wish you get 
> better soon &#x263A;</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 <[email protected]>
http://invisible-island.net
ftp://invisible-island.net

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Lynx-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lynx-dev

Reply via email to