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 40a6928b4ad38eaf38a85ed0f02234db931575e2..31c34689c7bc76bd56d007877c96c60cd8a6371f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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.
index c88fdb66621bb129ecd02d0e6517be1b2e869695..52c3135e3ea4d1a832ec85b5275ffd694626ec07 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 */