summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLauri Tirkkonen <lotheac@iki.fi>2016-03-14 15:34:54 +0200
committerDan McDonald <danmcd@omniti.com>2016-03-14 21:18:18 -0400
commit5a4ef21a18dfdc65328821a265582d03e85a97c9 (patch)
tree675c82b1d5625ad643ce083a629fcac2cd3ae76b
parentc16316e19fd89a1ebd17d6934bc47af7a11ff924 (diff)
downloadillumos-joyent-5a4ef21a18dfdc65328821a265582d03e85a97c9.tar.gz
5227 space should be automatically included in 'print' class by localedef
Reviewed by: Toomas Soome <tsoome@me.com> Reviewed by: Marcel Telka <marcel@telka.sk> Reviewed by: Garrett D'Amore <garrett@damore.org> Approved by: Dan McDonald <danmcd@omniti.com>
-rw-r--r--usr/src/cmd/localedef/ctype.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/src/cmd/localedef/ctype.c b/usr/src/cmd/localedef/ctype.c
index df474ca1bc..a0078072ba 100644
--- a/usr/src/cmd/localedef/ctype.c
+++ b/usr/src/cmd/localedef/ctype.c
@@ -300,6 +300,8 @@ dump_ctype(void)
ctn->ctype |= _ISLOWER;
if ((wc >= '0') && (wc <= '9'))
ctn->ctype |= _ISDIGIT;
+ if (wc == ' ')
+ ctn->ctype |= _ISPRINT;
if (strchr(" \f\n\r\t\v", (char)wc) != NULL)
ctn->ctype |= _ISSPACE;
if (strchr("0123456789ABCDEFabcdef", (char)wc) != NULL)