From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/9825 Path: news.gmane.org!not-for-mail From: Assaf Gordon Newsgroups: gmane.linux.lib.musl.general Subject: Re: Possible bug in setlocale upon invalid LC_ALL value Date: Sat, 2 Apr 2016 00:18:47 -0400 Message-ID: <787AA139-D825-44AA-BA0F-BA178F59BF21@gmail.com> References: <4C4AEBC7-4344-4867-B8F6-F1A691F123E0@gmail.com> <20160402005858.GA21636@brightrain.aerifal.cx> <9292C698-FABF-4721-AFC6-221ABAAD14F5@gmail.com> <20160402040914.GD21636@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2102\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1459570745 21126 80.91.229.3 (2 Apr 2016 04:19:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 2 Apr 2016 04:19:05 +0000 (UTC) Cc: musl@lists.openwall.com To: Rich Felker Original-X-From: musl-return-9838-gllmg-musl=m.gmane.org@lists.openwall.com Sat Apr 02 06:19:04 2016 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1amD1c-0007qg-2Y for gllmg-musl@m.gmane.org; Sat, 02 Apr 2016 06:19:04 +0200 Original-Received: (qmail 3910 invoked by uid 550); 2 Apr 2016 04:19:02 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 3874 invoked from network); 2 Apr 2016 04:19:01 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=bWfZgdZlWbf2TKx+Bhz/zJfm5kTZZsjhX8YPXlVLx94=; b=LHpY2C5+2sDycJ1i7FDX8TQX0Aa5T4FZXOh0uDV4aYzPrf6m3GtRIp9Z78hpDYxsCQ igkMFu6cSswAqL6r5/y8N2wUWFbIeapc/ykeSXTYxT1HSP0V40d4LP7lHUpO7pTSGIL4 Dqy/Wplx9t7HWSlL0ZHWNacu1t0uaSOLjpAYrwt+cswWF4sJn1ezTpC1d0+QOBOka/yb UF2cfKXwbUXc/iZdFBbWO/pa6ab6Jp8MMdKNb4H2FMQ4s99vIIPF7MkNG+cMWZgq03Ba 97c8jEiDUV4nC80Hfxd2XOeNsQKkm0R8Jlg5FvwkqyaOwA9GFFFQ7AXFU3c9+kOku3Px R3qQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=bWfZgdZlWbf2TKx+Bhz/zJfm5kTZZsjhX8YPXlVLx94=; b=bxa5Fw36MpfpBQqQ2EMdlXnThVijJkTW78IKwqIB/xwwaar7qpj1GrY7YY0JOlvZ3n bhSlmVvE3kif05dch2AiYL58mvsNZtR/w91/IyaPp/0G3Gwr2DUt2KsReFMg3+hIWyIs HL88RzcGo4zoOYVUbpwNsdWfEWJPT+Hx/QasOxcrjlYB6BhijfD85mXE9JghmRHdO+nb RmY+Qxbl7zRsxftZqY2s9EkXJLyILfN+3kdt8hiAeNUJwNsHPNugwOYELSdNpPrtOgKg TiDG/BhkgnS3MGndOBS2M3Cfvl3DYLqo+4W7E+dUcPdtaIAUv+9ez2XXIHW3FshGp3Ej xu8g== X-Gm-Message-State: AD7BkJJI9F6kyxemNEGjQV8rqPtWutL5LpBZODM3QtSnj3fCwfWrBhsJ69YcAQOEiDis3w== X-Received: by 10.140.158.68 with SMTP id e65mr265992qhe.4.1459570729588; Fri, 01 Apr 2016 21:18:49 -0700 (PDT) In-Reply-To: <20160402040914.GD21636@brightrain.aerifal.cx> X-Mailer: Apple Mail (2.2102) Xref: news.gmane.org gmane.linux.lib.musl.general:9825 Archived-At: Hello, Thanks again for the detailed response. > On Apr 2, 2016, at 00:09, Rich Felker wrote: > On Fri, Apr 01, 2016 at 10:46:25PM -0400, Assaf Gordon wrote: >>> On Apr 1, 2016, at 20:58, Rich Felker wrote: >>> This is intentional. All locale names are valid under musl, and = those >>> which don't have any particular definition are just aliases for >>> C.UTF-8. >>=20 >> I will suggest a minor fix to GNU coreutils to accommodate for this >> current implementation. >=20 > I think any 'fix' would be inconsistent with both the specified > behavior and the intended behavior. See below: I should've worded it better: the 'fix' will simply detect the situation = and skip the test (or give a warning) instead of reporting a test = failure. (cf. http://lists.gnu.org/archive/html/coreutils/2016-04/msg00002.html ) regards, - assaf