Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Oct 2015 20:45:30 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r289264 - projects/collation/usr.bin/localedef
Message-ID:  <201510132045.t9DKjUMm061733@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



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