From 046c3cda83ffa608af6ff51852d93ace8ec8658d Mon Sep 17 00:00:00 2001 From: "Pedro F. Giffuni" Date: Sun, 20 Mar 2016 03:27:06 +0000 Subject: [PATCH] localedef(1): minor sorting to match Illumos. Illumos recently included space in 'print' class. We already had this but the code had slight sorting differences. Move it some lines up to reduce diffs with Illumos. No functional change. Reference: https://illumos.org/issues/5227 --- usr.bin/localedef/ctype.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/localedef/ctype.c b/usr.bin/localedef/ctype.c index d610833fb27..e737ed5f876 100644 --- a/usr.bin/localedef/ctype.c +++ b/usr.bin/localedef/ctype.c @@ -332,14 +332,14 @@ 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) ctn->ctype |= _ISXDIGIT; if (strchr(" \t", (char)wc)) ctn->ctype |= _ISBLANK; - if (wc == ' ') - ctn->ctype |= _ISPRINT; /* * Technically these settings are only