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 */
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to