From b78b1e2544f5961d33ea3afd306906f563bc3c13 Mon Sep 17 00:00:00 2001 From: yuripv Date: Sat, 5 Oct 2019 22:17:54 +0000 Subject: [PATCH] Mark "private use area" characters as printable. At least some of the characters in E000-F8FF range are used by Powerline fonts, and having no attributes for these ranges in UnicodeData.txt other than "Other, Private Use" it should be safe to mark all of them as printable. Some actually were before r340491, so this fixes the regression introduced there as well. PR: 240911 Reviewed by: bapt Tested by: Daniel Ponte Differential Revision: https://reviews.freebsd.org/D21850 --- share/ctypedef/C.UTF-8.src | 10 +++++----- tools/tools/locale/tools/utf8-rollup.pl | 3 ++- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/share/ctypedef/C.UTF-8.src b/share/ctypedef/C.UTF-8.src index 84e6ee31c514..7c14f6bb941f 100644 --- a/share/ctypedef/C.UTF-8.src +++ b/share/ctypedef/C.UTF-8.src @@ -16434,7 +16434,6 @@ cntrl ;/ ;/ ;/ ;/ - ;...;;/ ;/ ;/ ;/ @@ -16549,9 +16548,7 @@ cntrl ;/ ;/ ;/ ;/ - ;/ - ;...;;/ - ;...; + digit ;/ ;/ ;/ @@ -22555,6 +22552,7 @@ graph ;/ ;/ ;/ ;/ + ;...;;/ ;/ ;/ ;/ @@ -27547,7 +27545,9 @@ graph ;/ ;/ ;/ ;/ - + ;/ + ;...;;/ + ;...; lower ;/ ;/ ;/ diff --git a/tools/tools/locale/tools/utf8-rollup.pl b/tools/tools/locale/tools/utf8-rollup.pl index 1fabb7b0d50d..da93d2f4398a 100755 --- a/tools/tools/locale/tools/utf8-rollup.pl +++ b/tools/tools/locale/tools/utf8-rollup.pl @@ -161,7 +161,8 @@ sub parse_unidata { $cat = "alpha"; } elsif ($d[2] =~ /^P/) { $cat = "punct"; - } elsif ($d[2] =~ /^M/ || $d[2] =~ /^N/ || $d[2] =~ /^S/) { + } elsif ($d[2] =~ /^Co/ || $d[2] =~ /^M/ || $d[2] =~ /^N/ || + $d[2] =~ /^S/) { $cat = "graph"; } elsif ($d[2] =~ /^C/) { $cat = "cntrl";