summaryrefslogtreecommitdiff
path: root/pith/charconv
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2015-05-01 23:22:51 -0600
committerEduardo Chappa <chappa@washington.edu>2015-05-01 23:22:51 -0600
commit21aedc404d8e1bf637e810ee521e99472b1e1287 (patch)
tree69ab791ae71e69d99edcd281baecb6b25dd6d088 /pith/charconv
parente2e8488ca2d18f2b0eedaa1bfc6826e8a11de025 (diff)
downloadalpine-21aedc404d8e1bf637e810ee521e99472b1e1287.tar.xz
* new version 2.20.8.
* Make sure titlebar (the line at the top of the screen) always contains the name of the folder/newsgroup that is open, if this fits in the title. * Fix a bug in the Windows version in which width of characters in the width ambiguous zone was computed incorrectly. Reported by Ulf-Dietrich Braumann.
Diffstat (limited to 'pith/charconv')
-rw-r--r--pith/charconv/utf8.c3
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 */
}