uniwidth/width: Update comment.
authorBruno Haible <bruno@clisp.org>
Sun, 5 Sep 2010 08:42:02 +0000 (10:42 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 5 Sep 2010 08:42:02 +0000 (10:42 +0200)
* lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.

ChangeLog
lib/uniwidth/width.c

index 40a6928..31c3468 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2010-09-05  Bruno Haible  <bruno@clisp.org>
 
+       uniwidth/width: Update comment.
+       * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
+       Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
+
+2010-09-05  Bruno Haible  <bruno@clisp.org>
+
        isinf, isnan: Relax license.
        * modules/isinf (License): Change from GPL to LGPL, with consent from
        Ben Pfaff.
index c88fdb6..52c3135 100644 (file)
@@ -332,8 +332,8 @@ uc_width (ucs4_t uc, const char *encoding)
         }
     }
   /* Test for double-width character.
-   * Generated from "grep '^....;[WF]' EastAsianWidth.txt"
-   * and            "grep '^....;[^WF]' EastAsianWidth.txt"
+   * Generated from "grep '^[^;]\{4,5\};[WF]' EastAsianWidth.txt"
+   * and            "grep '^[^;]\{4,5\};[^WF]' EastAsianWidth.txt"
    */
   if (uc >= 0x1100
       && ((uc < 0x1160) /* Hangul Jamo */