changeset 13642:2d782cb0229b

uniwidth/width: Update comment. * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1. Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
author Bruno Haible <bruno@clisp.org>
date Sun, 05 Sep 2010 10:42:02 +0200
parents 6def7a7d2644
children 8ee854b4646b
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 @@
+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.
--- a/lib/uniwidth/width.c
+++ b/lib/uniwidth/width.c
@@ -332,8 +332,8 @@
         }
     }
   /* 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 */