From owner-svn-src-head@freebsd.org Tue Nov 10 12:54:22 2015 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 276B0A2B92E for ; Tue, 10 Nov 2015 12:54:22 +0000 (UTC) (envelope-from mailing-machine@vniz.net) Received: from mail-lf0-f51.google.com (mail-lf0-f51.google.com [209.85.215.51]) (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 BEBCA15D0 for ; Tue, 10 Nov 2015 12:54:21 +0000 (UTC) (envelope-from mailing-machine@vniz.net) Received: by lffz63 with SMTP id z63so47325456lff.0 for ; Tue, 10 Nov 2015 04:54:13 -0800 (PST) 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-type :content-transfer-encoding; bh=ePEE6f4L/v9SX/u9lFJkd8XdeKY75cWiZI2vJ2R5LVw=; b=jBrwFYRwRiRz8DnHhe3K7SPlbepXaUphqmYRuxnu0svDhQDPoqjPuQTjPY5yty4+cy as7gZcgRWEuhi0F9128CX/cxfZgk2EoJJH6IzwKlWLl+im3oqEet8eQqHovYTdjdIX12 KQgQ2naJG2wtnn097ef/mqM4PrZ7Oynf3/4Pub3CWYTbc39sBm2FAi2xyiIlZ9AOwgCY 0GgPTswALbP7IGpzENOWI9Njf3MrufloIY5QygOLKGufE/vWpOL6f3e960agAONLLAhE Fu+FLaT7aagF8Nt5O5mu1JcAqiFIBp6LvEPYxOcMcvF6+zTe8cSgL/43xomPnbdTHixn 70mA== X-Gm-Message-State: ALoCoQlwNHaTrBkoMe4DMLzEPo5rns4PQXXpZ45aPHbspN/9aK+7fLploZUU0ahnhDXT5lObX9b0 X-Received: by 10.25.156.5 with SMTP id f5mr1518454lfe.46.1447159733595; Tue, 10 Nov 2015 04:48:53 -0800 (PST) Received: from [192.168.1.2] ([89.169.173.68]) by smtp.gmail.com with ESMTPSA id c7sm494304lfe.22.2015.11.10.04.48.52 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Nov 2015 04:48:53 -0800 (PST) Subject: Re: svn commit: r290637 - head/lib/libc/locale To: Baptiste Daroussin , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org References: <201511100811.tAA8BR0R034338@repo.freebsd.org> From: Andrey Chernov Message-ID: <5641E7B4.2070508@freebsd.org> Date: Tue, 10 Nov 2015 15:48:52 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <201511100811.tAA8BR0R034338@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.20 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: Tue, 10 Nov 2015 12:54:22 -0000 On 10.11.2015 11:11, Baptiste Daroussin wrote: > Author: bapt > Date: Tue Nov 10 08:11:27 2015 > New Revision: 290637 > URL: https://svnweb.freebsd.org/changeset/base/290637 > > Log: > return "US-ASCII" instead of "POSIX" for "C" and "POSIX" locales > as it used to be in previous version of the locales. Returning > "POSIX" has too many fallouts. You can return "ANSI_X3.4-1968" (another name of "US-ASCII") to be different with real US-ASCII. It is what glibc returns for C/POSIX locale and most ports expected, being linux-oriented. > > Modified: > head/lib/libc/locale/nl_langinfo.c > > Modified: head/lib/libc/locale/nl_langinfo.c > ============================================================================== > --- head/lib/libc/locale/nl_langinfo.c Tue Nov 10 07:32:49 2015 (r290636) > +++ head/lib/libc/locale/nl_langinfo.c Tue Nov 10 08:11:27 2015 (r290637) > @@ -71,7 +71,7 @@ nl_langinfo_l(nl_item item, locale_t loc > else if (strcmp(s, "MSKanji") == 0) > ret = "SJIS"; > else if (strcmp(s, "NONE") == 0) > - ret = "POSIX"; > + ret = "US-ASCII"; > else if (strncmp(s, "NONE:", 5) == 0) > ret = (char *)(s + 5); > else > -- http://ache.vniz.net/