changeset 10354:259e0fdc6c66

Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
author Bruno Haible <bruno@clisp.org>
date Sun, 24 Aug 2008 12:26:56 +0200
parents a34661f8b5c8
children 017cb54cf1da
files ChangeLog lib/uniwidth/width.c
diffstat 2 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-08-24  Bruno Haible  <bruno@clisp.org>
+
+	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  <ebb9@byu.net>
 
 	test-lock, test-tls: mention why a test is skipped
--- 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 <bruno@clisp.org>, 2002.
 
    This program is free software: you can redistribute it and/or modify it
@@ -36,7 +36,7 @@
   /* 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 */