aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-01-31 18:12:57 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2010-01-31 18:12:57 +0100
commit460f8276449f0933f242c9295b241ec213bcef82 (patch)
tree1ab106c367abef17504d1e30aac7408745144043
parentb1edf20f1848cd741e8a8395afb4a4655a210906 (diff)
downloadbusybox-w32-460f8276449f0933f242c9295b241ec213bcef82.tar.gz
busybox-w32-460f8276449f0933f242c9295b241ec213bcef82.tar.bz2
busybox-w32-460f8276449f0933f242c9295b241ec213bcef82.zip
better wording in Config
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--Config.in12
-rw-r--r--libbb/unicode_wcwidth.c2
2 files changed, 11 insertions, 3 deletions
diff --git a/Config.in b/Config.in
index b4ea70242..e7bb05dce 100644
--- a/Config.in
+++ b/Config.in
@@ -161,9 +161,11 @@ config LAST_SUPPORTED_WCHAR
161 161
162 The idea is that many valid printable Unicode chars are 162 The idea is that many valid printable Unicode chars are
163 nevertheless are not displayed correctly. Think about 163 nevertheless are not displayed correctly. Think about
164 combining charachers, double-wide hieroglyphs and such. 164 combining charachers, double-wide hieroglyphs, obscure
165 Many terminals, xterms and such will fail to handle them 165 characters in dozens of ancient scripts...
166 correctly. 166 Many terminals, terminal emulators, xterms etc will fail
167 to handle them correctly. Choose the smallest value
168 which suits your needs.
167 169
168 Typical values are: 170 Typical values are:
169 126 - ASCII only 171 126 - ASCII only
@@ -172,6 +174,10 @@ config LAST_SUPPORTED_WCHAR
172 code is ~700 bytes smaller for this case. 174 code is ~700 bytes smaller for this case.
173 4351 (0x10ff) - there are no double-wide chars in [0..4351] range, 175 4351 (0x10ff) - there are no double-wide chars in [0..4351] range,
174 code is ~300 bytes smaller for this case. 176 code is ~300 bytes smaller for this case.
177 12799 (0x31ff) - nearly all non-ideographic characters are
178 available in [0..12799] range, including
179 East Asian scripts like katakana, hiragana, hangul,
180 bopomofo...
175 0 - off, any valid printable Unicode character will be printed. 181 0 - off, any valid printable Unicode character will be printed.
176 182
177config UNICODE_COMBINING_WCHARS 183config UNICODE_COMBINING_WCHARS
diff --git a/libbb/unicode_wcwidth.c b/libbb/unicode_wcwidth.c
index c7cc524a6..a81a98038 100644
--- a/libbb/unicode_wcwidth.c
+++ b/libbb/unicode_wcwidth.c
@@ -534,6 +534,7 @@ static int wcwidth(unsigned ucs)
534 || ucs == 0x2329 /* left-pointing angle bracket; also CJK punct. char */ 534 || ucs == 0x2329 /* left-pointing angle bracket; also CJK punct. char */
535 || ucs == 0x232a /* right-pointing angle bracket; also CJK punct. char */ 535 || ucs == 0x232a /* right-pointing angle bracket; also CJK punct. char */
536 || (ucs >= 0x2e80 && ucs <= 0xa4cf && ucs != 0x303f) /* CJK ... Yi */ 536 || (ucs >= 0x2e80 && ucs <= 0xa4cf && ucs != 0x303f) /* CJK ... Yi */
537# if LAST_SUPPORTED_WCHAR >= 0xac00
537 || (ucs >= 0xac00 && ucs <= 0xd7a3) /* Hangul Syllables */ 538 || (ucs >= 0xac00 && ucs <= 0xd7a3) /* Hangul Syllables */
538 || (ucs >= 0xf900 && ucs <= 0xfaff) /* CJK Compatibility Ideographs */ 539 || (ucs >= 0xf900 && ucs <= 0xfaff) /* CJK Compatibility Ideographs */
539 || (ucs >= 0xfe10 && ucs <= 0xfe19) /* Vertical forms */ 540 || (ucs >= 0xfe10 && ucs <= 0xfe19) /* Vertical forms */
@@ -541,6 +542,7 @@ static int wcwidth(unsigned ucs)
541 || (ucs >= 0xff00 && ucs <= 0xff60) /* Fullwidth Forms */ 542 || (ucs >= 0xff00 && ucs <= 0xff60) /* Fullwidth Forms */
542 || (ucs >= 0xffe0 && ucs <= 0xffe6) 543 || (ucs >= 0xffe0 && ucs <= 0xffe6)
543 || ((ucs >> 17) == (2 >> 1)) /* 20000..3ffff: Supplementary and Tertiary Ideographic Planes */ 544 || ((ucs >> 17) == (2 >> 1)) /* 20000..3ffff: Supplementary and Tertiary Ideographic Planes */
545# endif
544 ); 546 );
545# endif 547# endif
546#endif 548#endif