From owner-svn-src-all@freebsd.org Tue Dec 6 15:42:20 2016 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1CF41C6A11A; Tue, 6 Dec 2016 15:42:20 +0000 (UTC) (envelope-from vangyzen@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E08A71681; Tue, 6 Dec 2016 15:42:19 +0000 (UTC) (envelope-from vangyzen@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id uB6FgJfB043848; Tue, 6 Dec 2016 15:42:19 GMT (envelope-from vangyzen@FreeBSD.org) Received: (from vangyzen@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id uB6FgJnm043847; Tue, 6 Dec 2016 15:42:19 GMT (envelope-from vangyzen@FreeBSD.org) Message-Id: <201612061542.uB6FgJnm043847@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: vangyzen set sender to vangyzen@FreeBSD.org using -f From: Eric van Gyzen Date: Tue, 6 Dec 2016 15:42:19 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r309624 - head/usr.bin/locale X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Dec 2016 15:42:20 -0000 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 */