From owner-svn-src-all@freebsd.org Mon Sep 19 16:25:15 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 7BDCEBE19A7 for ; Mon, 19 Sep 2016 16:25:15 +0000 (UTC) (envelope-from mailing-machine@vniz.net) Received: from mail-lf0-f50.google.com (mail-lf0-f50.google.com [209.85.215.50]) (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 0D73518F0 for ; Mon, 19 Sep 2016 16:25:14 +0000 (UTC) (envelope-from mailing-machine@vniz.net) Received: by mail-lf0-f50.google.com with SMTP id g62so113579000lfe.3 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=i7/PSZJV0vYpxJY0YenoLXM68CQJxQLtSrKE2dprusiVxYa6+xrcsDtkw6y9dLKLUy r9eckTE550CgE+UDooIy/HQWQdwl1SsTD9V2+9sqFL7V7GjHQdHppACgME+09BmXsk5x 645fMU7P6THI0ZiyAASNv2T8J+pk3pCYZUNzyHKo0DmAlKNpK5A6ycqX4dKBTVgjRIwD u6RnPKP8VvdL+IQ4q1OWRPhGbWQ/Tfq80JxJ0ZC2dgeAbKPImjP7UyvqduHdVp4zV9M3 srCtev7o2ptHSqroB73ZwIDLyBf31z7/IPm8nwInDcF2mYkMq4fMargWPkvAbDm7SIAR 4UHw== X-Gm-Message-State: AE9vXwMRnlWs6k6ybq2H4NtjM+P1FN9TbqLhjrNXcyeN6Txaid/ydg5968Xf4+Sv5+JFnA== 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-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: 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.