From owner-freebsd-testing@freebsd.org Sun Nov 15 15:38:10 2015 Return-Path: Delivered-To: freebsd-testing@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 135C6A2F107 for ; Sun, 15 Nov 2015 15:38:10 +0000 (UTC) (envelope-from mailing-machine@vniz.net) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id DAE2219AF for ; Sun, 15 Nov 2015 15:38:09 +0000 (UTC) (envelope-from mailing-machine@vniz.net) Received: by mailman.ysv.freebsd.org (Postfix) id D846FA2F105; Sun, 15 Nov 2015 15:38:09 +0000 (UTC) Delivered-To: testing@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 BF6CCA2F104 for ; Sun, 15 Nov 2015 15:38:09 +0000 (UTC) (envelope-from mailing-machine@vniz.net) Received: from mail-lb0-f169.google.com (mail-lb0-f169.google.com [209.85.217.169]) (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 682EF19AC for ; Sun, 15 Nov 2015 15:38:09 +0000 (UTC) (envelope-from mailing-machine@vniz.net) Received: by lbbkw15 with SMTP id kw15so76264346lbb.0 for ; Sun, 15 Nov 2015 07:38:07 -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:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=G/NCCaxV+AcH1npFoixvj5OhkqDtxnMBIOk1hIpxqM4=; b=aniY/A+w63t1ywcXIPB6upvTwQuNUKA7JuSK7RgXtUh8EPga/kRoSB+cTQHHhI9+M+ bslhk4q/jzMkRQyvuiTnpEdt27v5TlPabF/gNMMdt1hs8DSLvBGMPDA0J4IDMbYES12y CrUFainf2Ys7A+iMXiIVZXZYJonY/gIYh4MLIXVyWzhZoUuixHuQONE01hgpx7ja9yCp 6n1x3ZbMmxhbyd375gFxKJGHsI+NTce+XiYo4dliDU4cfPdu8ow06ZNCAqaJXS2BTdtC 3iQL9A1nF9EY4R72NPp1CuZ/y+/DBx6p0MX3q/kESc/jLBKvGrQiN6QB09nPqxv7A91d eEXA== X-Gm-Message-State: ALoCoQkGCuWkt/RWGZziWSVBKQZ+DR9Im8j0vgWYz9ZPiurrjBuwpH1rmxR57h+V+rd7Z5WfaUQs X-Received: by 10.112.198.69 with SMTP id ja5mr15452749lbc.106.1447601887378; Sun, 15 Nov 2015 07:38:07 -0800 (PST) Received: from [192.168.1.2] ([89.169.173.68]) by smtp.gmail.com with ESMTPSA id t204sm4840170lfd.41.2015.11.15.07.38.05 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 15 Nov 2015 07:38:06 -0800 (PST) Subject: Re: Need help fixing failing locale tests To: marino@freebsd.org, Baptiste Daroussin References: <69242BD8-9010-47F0-9706-BE206376ECEA@gmail.com> <289892B6-EACE-4BDA-B838-D3DC750319DE@gmail.com> <56482FA9.2010803@marino.st> <56487973.5070803@freebsd.org> <20151115124656.GB93991@ivaldir.etoilebsd.net> <564880FA.5000009@freebsd.org> <564882A3.7060109@marino.st> <5648842E.3050203@freebsd.org> <5648853F.2050901@marino.st> <56488A76.1090502@freebsd.org> <56488E8C.9080901@marino.st> <56489932.1080504@freebsd.org> <56489AEA.4060100@marino.st> <56489DB4.5050000@freebsd.org> <5648A211.40703@marino.st> Cc: NGie Cooper , Craig Rodrigues , freebsd-current Current , "freebsd-testing@freebsd.org" From: Andrey Chernov X-Enigmail-Draft-Status: N1110 Message-ID: <5648A6DD.8020507@freebsd.org> Date: Sun, 15 Nov 2015 18:38:05 +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: <5648A211.40703@marino.st> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-testing@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Testing on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Nov 2015 15:38:10 -0000 On 15.11.2015 18:17, John Marino wrote: >>>> See gettext-0.19.6/gettext-tools/configure, part started with >>>> # Test for the usual locale name. >>>> I don't have time to dig more such code now, but I remember I saw more >>>> for sure. > Of course it's the same topic. > If the configure of a port is affected by the locale, that's a big > problem. How is this not the same topic? This is environment problem, not presence or absence of some locales in the system (f.e. 8859-1 ones) we talked about. And can be easily fixed in the environment, unlike configure's silent script fallbacks, which can be fixed by recompiling only. About environment problem, we already have LANG=C somewhere in the /usr/ports/Mk/* (probably not in every place) and many ports set LANG=C or LC_ALL by themselves. > But I did look at gettext, which is configuring package based on what's > on the system (not environment). For the unicode checks, there is > obviously no issue. > > For the traditional checks, It's ironic, DragonFly uses short locales > like "fr_FR" which link to the approprioprate ISO8859 or UTF-8 locale. > Bapt removed them to avoid a bike shed and if he had not done that, this > gettext configure would not be an issue as "fr_FR" is the very first check. All parts are optional excepting language itself, so fr_FR is not short enough, but fr is. From POSIX: language[_territory][.codeset][@modifier] But I dislike short locales due to their uncertainty and remember some programs and shell scripts that attempts to parse locale name directly by itself for reasons I don't remember now. -- http://ache.vniz.net/