Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Mar 2016 03:27:06 +0000 (UTC)
From:      "Pedro F. Giffuni" <pfg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r297057 - head/usr.bin/localedef
Message-ID:  <201603200327.u2K3R6e9040725@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pfg
Date: Sun Mar 20 03:27:06 2016
New Revision: 297057
URL: https://svnweb.freebsd.org/changeset/base/297057

Log:
  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

Modified:
  head/usr.bin/localedef/ctype.c

Modified: head/usr.bin/localedef/ctype.c
==============================================================================
--- head/usr.bin/localedef/ctype.c	Sun Mar 20 03:09:01 2016	(r297056)
+++ head/usr.bin/localedef/ctype.c	Sun Mar 20 03:27:06 2016	(r297057)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201603200327.u2K3R6e9040725>