svn commit: r309624 - head/usr.bin/locale

Eric van Gyzen vangyzen at FreeBSD.org
Tue Dec 6 15:42:20 UTC 2016


Author: vangyzen
Date: Tue Dec  6 15:42:18 2016
New Revision: 309624
URL: https://svnweb.freebsd.org/changeset/base/309624

Log:
  locale: fix the powerpc build
  
  Reported by:	markj (and bde, in a way)
  MFC after:	3 days
  X-MFC with:	r309364
  Sponsored by:	Dell EMC

Modified:
  head/usr.bin/locale/locale.c

Modified: head/usr.bin/locale/locale.c
==============================================================================
--- head/usr.bin/locale/locale.c	Tue Dec  6 15:16:00 2016	(r309623)
+++ head/usr.bin/locale/locale.c	Tue Dec  6 15:42:18 2016	(r309624)
@@ -500,8 +500,10 @@ format_grouping(const char *binary)
 	rval[0] = '\0';
 	roff = 0;
 	for (cp = binary; *cp != '\0'; ++cp) {
+#if CHAR_MIN != 0
 		if (*cp < 0)
 			break;		/* garbage input */
+#endif
 		len = snprintf(&rval[roff], sizeof(rval) - roff, "%u;", *cp);
 		if (len < 0 || (unsigned)len >= sizeof(rval) - roff)
 			break;		/* insufficient space for output */


More information about the svn-src-all mailing list