svn commit: r289264 - projects/collation/usr.bin/localedef

Baptiste Daroussin bapt at FreeBSD.org
Tue Oct 13 20:45:31 UTC 2015


Author: bapt
Date: Tue Oct 13 20:45:29 2015
New Revision: 289264
URL: https://svnweb.freebsd.org/changeset/base/289264

Log:
  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 "<space>".
  
  Obtained from:	Dragonfly

Modified:
  projects/collation/usr.bin/localedef/ctype.c

Modified: projects/collation/usr.bin/localedef/ctype.c
==============================================================================
--- projects/collation/usr.bin/localedef/ctype.c	Tue Oct 13 20:43:49 2015	(r289263)
+++ projects/collation/usr.bin/localedef/ctype.c	Tue Oct 13 20:45:29 2015	(r289264)
@@ -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


More information about the svn-src-projects mailing list