Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Dec 2016 15:42:19 +0000 (UTC)
From:      Eric van Gyzen <vangyzen@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r309624 - head/usr.bin/locale
Message-ID:  <201612061542.uB6FgJnm043847@repo.freebsd.org>

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



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