From 97055fc243c274ccb7531c2ad47484df211bed6a Mon Sep 17 00:00:00 2001 From: John Marino Date: Sat, 15 Aug 2015 14:03:22 +0200 Subject: [PATCH] localedef(1): eliminate need for "print" definition By having space automatically classified as "print" type, we can eliminate the print section from ctype src files completely (they are just "graph" plus "". --- usr.bin/localedef/ctype.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/usr.bin/localedef/ctype.c b/usr.bin/localedef/ctype.c index 39b50988b0..803a5f3345 100644 --- a/usr.bin/localedef/ctype.c +++ b/usr.bin/localedef/ctype.c @@ -338,6 +338,8 @@ dump_ctype(void) ctn->ctype |= _ISXDIGIT; if (strchr(" \t", (char)wc)) ctn->ctype |= _ISBLANK; + if (wc == ' ') + ctn->ctype |= _ISPRINT; /* * Technically these settings are only -- 2.41.0