From owner-freebsd-current@freebsd.org Sun Nov 15 15:38:10 2015 Return-Path: Delivered-To: freebsd-current@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 E9EA6A2F106 for ; Sun, 15 Nov 2015 15:38:09 +0000 (UTC) (envelope-from mailing-machine@vniz.net) Received: from mail-lb0-f170.google.com (mail-lb0-f170.google.com [209.85.217.170]) (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 6FC7319AD for ; Sun, 15 Nov 2015 15:38:09 +0000 (UTC) (envelope-from mailing-machine@vniz.net) Received: by lbbsy6 with SMTP id sy6so47454802lbb.2 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=HldEWbEsiPU0emUpfDINCFnRjy25jYYeT49osZCjohRthOZIYnIcwtCFiKucxd4upu P8/0ljmWNcX5ZPeh22P7Nh5MmMT4tA5H/8xFSORXtp1B3iDzh7Ci4GXZH0h92rO/VG1n arUPXECr+vf3WfZoISUeB0afCh8jyKDvgfNWJxOPt5KKMcNih2rEzvEZT/jCFiRcP/uR oqhUyACedowWE5uOT997Tl85+Zkp4Um9bdHNbnN0U87oJe4bcBbiY4oeu7detRFDoXt3 XyNwgUkyjHsaRm4bpjBEAVW56M5xNmP7sKV8a1GOq/Ll7f9VE+LyOiRIgLloCE0VjKPA G2Mg== X-Gm-Message-State: ALoCoQl6e0J7wEVeqwZgY1q6onWbAyu2be6pfLXmDWGst8JNFBiHrAlRhP14AhrOfN/7OEJHiqyw 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-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current 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/