From owner-svn-src-head@freebsd.org Mon Sep 19 16:25:15 2016 Return-Path: Delivered-To: svn-src-head@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 6C018BE19A6 for ; Mon, 19 Sep 2016 16:25:15 +0000 (UTC) (envelope-from mailing-machine@vniz.net) Received: from mail-lf0-f49.google.com (mail-lf0-f49.google.com [209.85.215.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0F4CD18F1 for ; Mon, 19 Sep 2016 16:25:14 +0000 (UTC) (envelope-from mailing-machine@vniz.net) Received: by mail-lf0-f49.google.com with SMTP id y6so42103659lff.1 for ; Mon, 19 Sep 2016 09:25:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=uqEw2vCpzpQSSJ29EysrDdMWwxhcUZLCZaDFIQWL8I4=; b=MIIA6qsfifUb+qb1/mnAYytfse4XbO5GbRzhSn8y7mkFzP/p3u3Jc5LrSrEBGjefQ0 39EpiVcB1e4lYuJGibJrA1FV01yFRgReOPQlRhNXrBbnHzRGnHpct/9y3v07iRNPCk8z oypD4abx82y6IqprRy0zJ9Q7YbVHNfQ4tBiH+1pTu05VExIY8lkHExPpKCBWheypUeiS n2u5nL7ksLbIHGfv+hhW7dhlIAyrhKx5zHbkINnNXNGJT/smO300s6+mGYgaQKn+eprf Psv8xXe0Jp3fjFVJRAv7utGw69wD7ejfNllqWityHDFkWcyFOu7HWfHi1m8KJfYCcyME p5tw== X-Gm-Message-State: AE9vXwO8IBVRcUjQLV+9B1wi2wKayxt3W7pcQ/fW+Qxa+qyrnTQ2bI3/KkwYE2XsvKWLYA== X-Received: by 10.46.1.42 with SMTP id 42mr11382039ljb.68.1474302305313; Mon, 19 Sep 2016 09:25:05 -0700 (PDT) Received: from [192.168.1.2] ([89.169.173.68]) by smtp.gmail.com with ESMTPSA id o80sm4794883lfg.29.2016.09.19.09.25.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Sep 2016 09:25:04 -0700 (PDT) Subject: Re: svn commit: r305981 - head/usr.bin/cmp To: "Conrad E. Meyer" , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org References: <201609191613.u8JGD0GA036854@repo.freebsd.org> From: Andrey Chernov Message-ID: Date: Mon, 19 Sep 2016 19:25:02 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <201609191613.u8JGD0GA036854@repo.freebsd.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Sep 2016 16:25:15 -0000 On 19.09.2016 19:13, Conrad E. Meyer wrote: > + /* > + * Cache NLS data, for strerror, for err(3), before entering capability > + * mode. > + */ > + (void)catopen("libc", NL_CAT_LOCALE); This code should be common for all programs which use err(), perror() etc. since they all should call setlocale() with LC_ALL. If they not do it, they should be fixed in the same time.