From 21174cc3af3cb61aa048c1c34b51811e8c4df210 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 24 Aug 2008 12:26:56 +0200 Subject: [PATCH] Fix uc_width(0x00AB) bug, introduced on 2007-07-08. --- ChangeLog | 6 ++++++ lib/uniwidth/width.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0195a7fb1..259a4d042 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-08-24 Bruno Haible + + Fix uc_width(0x00AB) bug, introduced on 2007-07-08. + * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD, + not 0x00AB. + 2008-08-22 Eric Blake test-lock, test-tls: mention why a test is skipped diff --git a/lib/uniwidth/width.c b/lib/uniwidth/width.c index 543dd5d56..4161c26e6 100644 --- a/lib/uniwidth/width.c +++ b/lib/uniwidth/width.c @@ -1,5 +1,5 @@ /* Determine display width of Unicode character. - Copyright (C) 2001-2002, 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2001-2002, 2006-2008 Free Software Foundation, Inc. Written by Bruno Haible , 2002. This program is free software: you can redistribute it and/or modify it @@ -36,7 +36,7 @@ static const unsigned char nonspacing_table_data[22*64] = { /* 0x0000-0x01ff */ 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, /* 0x0000-0x003f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, /* 0x0040-0x007f */ - 0xff, 0xff, 0xff, 0xff, 0x00, 0x08, 0x00, 0x00, /* 0x0080-0x00bf */ + 0xff, 0xff, 0xff, 0xff, 0x00, 0x20, 0x00, 0x00, /* 0x0080-0x00bf */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x00c0-0x00ff */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0100-0x013f */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0x0140-0x017f */ -- 2.11.0