Take zerowidth and double-width chars into consideration when computing
authorBehdad Esfahbod <behdad@gnome.org>
Wed, 3 Jan 2007 23:05:36 +0000 (23:05 +0000)
committerBehdad Esfahbod <behdad@src.gnome.org>
Wed, 3 Jan 2007 23:05:36 +0000 (23:05 +0000)
commitd2a9b31e61e85af8a19ef44cac79067be932370f
treeaca3a0ad32df5dabca0ebdb9059447dc54d5a825
parenta0c60a62d6598be7f5ed00b87ba958c4f1301140
Take zerowidth and double-width chars into consideration when computing

2007-01-03  Behdad Esfahbod  <behdad@gnome.org>

        * glib/goption.c (_g_unichar_get_width), (_g_utf8_strwidth),
        (calculate_max_length), (print_entry), (print_help): Take zerowidth
        and double-width chars into consideration when computing width of a
        string.  Also fix another bug in width computation.

        * glib/guniprop.c (g_unichar_iszerowidth): Fix typo.  It was not
        working correctly.

svn path=/trunk/; revision=5204
ChangeLog
glib/goption.c
glib/guniprop.c