diff options
Diffstat (limited to 'pith/charconv')
-rw-r--r-- | pith/charconv/utf8.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pith/charconv/utf8.c b/pith/charconv/utf8.c index 29341f71..b5ce6255 100644 --- a/pith/charconv/utf8.c +++ b/pith/charconv/utf8.c @@ -100,13 +100,14 @@ wcellwidth(UCS ucs) #endif } +/* ambiguous width zone character function */ int pith_ucs4width(UCS ucs) { #ifndef _WINDOWS return wcwidth((wchar_t) ucs); #else - return 0; + return (ucs >= 0x2100) ? 2 : 1; #endif /* _WINDOWS */ } |