From owner-freebsd-ports-bugs@freebsd.org Mon Jan 16 14:05:32 2017 Return-Path: Delivered-To: freebsd-ports-bugs@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 9B2F9CB11ED for ; Mon, 16 Jan 2017 14:05:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 8B11C1BA5 for ; Mon, 16 Jan 2017 14:05:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v0GE5V7v008671 for ; Mon, 16 Jan 2017 14:05:32 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 215882] [exp-run] always set LANG=C and LC_ALL=C Date: Mon, 16 Jan 2017 14:05:32 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Ports Framework X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: tijl@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: antoine@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Jan 2017 14:05:32 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D215882 --- Comment #3 from Tijl Coosemans --- (In reply to Gerald Pfeifer from comment #2) Yes we want the other LC_* too. Bug 215792 requires LC_NUMERIC=3DC. Use of character classes with tr(1) requires LC_CTYPE=3DC. Consistent output from date(1) requires LC_TIME=3DC. These are all handled at once by setting LC_= ALL=3DC.=20 LANG is used by setlocale(3) as default value for LC_* variables that aren't set, so normally it isn't used when LC_ALL is set, but I've seen patches in= the ports tree that show there's code out there that looks at LANG directly so = it's safer to set it as well. I also think we need to set these globally (with .export) at the beginning = of bsd.port.mk to rule out any locale problems in the ports tree itself. The = only commands not captured by this are !=3D assignments before any inclusion of bsd.port.*mk. I now see I forgot about bsd.port.subdir.mk. Maybe LANG/LC_= ALL should be set there as well? --=20 You are receiving this mail because: You are on the CC list for the bug.=