Control: tags -1 +patch

Hi!
Here's a minimal patch that fixes iswprint(PUA):

--- joe-4.1.orig/joe/unicode.c
+++ joe-4.1/joe/unicode.c
@@ -321,6 +321,7 @@ void joe_iswinit()
        cclass_union(cclass_print, unicode("N"));
        cclass_union(cclass_print, unicode("P"));
        cclass_union(cclass_print, unicode("Zs"));
+       cclass_union(cclass_print, unicode("Co"));
        cclass_opt(cclass_print);
 
        /* Graphical characters (no spaces) */

> Classification returned by glibc:
> width 1 punct graph print

I wonder about iswpunct() -- glibc somehow returns true for PUA characters,
so it might be a good idea to be consistent with it (even if I don't see why
it's set).  As for iswgraph(), joe defines this function but never uses it.
Joe's wcwidth() assumes 1 for all not explicitely listed characters, so
that's same as glibc.

-- 
A tit a day keeps the vet away.

Reply via email to