From owner-svn-src-all@freebsd.org Tue Nov 10 12:49:02 2015 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 18113A2B513 for ; Tue, 10 Nov 2015 12:49:02 +0000 (UTC) (envelope-from mailing-machine@vniz.net) Received: from mail-lf0-f41.google.com (mail-lf0-f41.google.com [209.85.215.41]) (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 B04A41C1B for ; Tue, 10 Nov 2015 12:49:01 +0000 (UTC) (envelope-from mailing-machine@vniz.net) Received: by lfs39 with SMTP id 39so84734258lfs.3 for ; Tue, 10 Nov 2015 04:48:53 -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=Uve7wOmWUN8fdh2Oiep/DIc/WOVpc8+h5QlQLN1X31WCFJqQ1lINVxlDqt7KZtc3zd SL0gIbqxfeTThbS0qEwWDj/+uXccKfK1HED6zqpajnRi/oOR5qylLMeTPgVL7muUuqzv u+KJog5buT4sI0FpZRVH6dcJ79zGcW159H2sGKFUPoBLuMahTR6kPfecWyiueIWVPGAv 5Rb94/3L6K9wx1U/6rudtSepBcvvFnzTQ6e0wxI74HfKhLiQn20Edqh7iM53MI9BLUdA SkySBQ9jOsvyU/CYS+hwUEJOYRscQGQDDBj2ttkBvszNQ4mDzOArWHE0gC0PhFVleSbw hv/w== X-Gm-Message-State: ALoCoQkGnSnmNu8zD2yKP46NZD+st/wf8YPVVkCJxLxbCcnEdKKTr4AAN2KxnWp/8eh0PkyUxZIx 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-all@freebsd.org X-Mailman-Version: 2.1.20 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, 10 Nov 2015 12:49:02 -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/