diff options
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/unicode_wcwidth.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 |