summaryrefslogtreecommitdiff
path: root/pith/charconv/utf8.c
diff options
context:
space:
mode:
Diffstat (limited to 'pith/charconv/utf8.c')
-rw-r--r--pith/charconv/utf8.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/pith/charconv/utf8.c b/pith/charconv/utf8.c
index 373f4b62..6613f4db 100644
--- a/pith/charconv/utf8.c
+++ b/pith/charconv/utf8.c
@@ -100,10 +100,13 @@ wcellwidth(UCS ucs)
#endif
}
-/* ambiguous width zone character function */
+/* ambiguous width zone character function. We use the Windows code until
+ * we find a better way to do it in general.
+ */
int
pith_ucs4width(UCS ucs)
{
+ return (ucs >= 0x2100) ? 2 : 1;
#if !defined(_WINDOWS) && HAVE_WCWIDTH
return wcwidth((wchar_t) ucs);
#else