forwarded 822074 https://sourceforge.net/p/joe-editor/bugs/359/
thanks

Adam, thanks for the bug report as well as the patch.

I encourage you to use the upstream bug tracking system for these generic
issues in the future, so other people see it faster.

On Sun, Apr 24, 2016 at 10:41:38PM +0200, Adam Borowski wrote:
> 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.

-- 
     2. That which causes joy or happiness.

Reply via email to