Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
authorBruno Haible <bruno@clisp.org>
Sun, 24 Aug 2008 10:26:56 +0000 (12:26 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 24 Aug 2008 10:26:56 +0000 (12:26 +0200)
ChangeLog
lib/uniwidth/width.c

index 0195a7fb159595811e9acb2ef005e53bfef1d756..259a4d042be495e02988500da95fa9c66f0fdebf 100644 (file)
--- 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
index 543dd5d56ddaf1fb103f2e8051b6f6f095d92879..4161c26e66e8e6850f20678c1b4c664673d3da0e 100644 (file)
@@ -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 @@ 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 */