From owner-svn-src-head@freebsd.org Tue Jun 21 07:12:54 2016 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 A41F7AC5174; Tue, 21 Jun 2016 07:12:54 +0000 (UTC) (envelope-from baptiste.daroussin@gmail.com) Received: from mail-lf0-x22d.google.com (mail-lf0-x22d.google.com [IPv6:2a00:1450:4010:c07::22d]) (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 1962D1D54; Tue, 21 Jun 2016 07:12:54 +0000 (UTC) (envelope-from baptiste.daroussin@gmail.com) Received: by mail-lf0-x22d.google.com with SMTP id q132so9230245lfe.3; Tue, 21 Jun 2016 00:12:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=7dQih5MafRpb5XkR2BBSUc2uV4n2jT9z28WQhJhsJlo=; b=MJeXKy7Ry9W16yAilrCqSdfYYQw6A4h5ZovK4TGlR4zQV3s7rzgeE0NfJKedF5/QIH uP4A+ef/rImkOkAqcKockMc+t1yjcyg6cK+KVFJimvMzPkB7wacAAfqMO/x0gzv3ohyu 2dgEMmXJzhoBESWOW4+JQG1PWFNYFKor2Eyu92+XeSId5E9bhWZ6XsfRkvEyiU2alUJh adrqetk96S37I9n1l6bNpSZXKbC51dxc7D7ChhXcjzWluC/SZdip+Bn2/RP9r2Gxh+qe 8Zorc78MbmCuuMDK4M31ad9uuAOqZxFwkFCgabcFsDjOvRg9zo1D4maRn0lL32iT+bIU Yt3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=7dQih5MafRpb5XkR2BBSUc2uV4n2jT9z28WQhJhsJlo=; b=bSzIongaHDbpm1uAYOdifjXaqqYHiPSWftgKT2Bh4zFi3FooK3KypL0PmmwfuXVv10 67laEVQIYSYE1D5KDAjRGUxrhWWiBnIPZVGLMYqRyymqHHGH9p1Y2DsXuKAJfRNwRMGr cjvLLD1sGc3FGbMCA4zQF6pewpeh7Ru/UmdXzRbtHSbXqldqrXCgr/sPBERB+i60QMHg 5NKCk9ORifnKcS4x32QA3u9/6+Cd6gENB+xMTYC87nV12WP/C697JX79DRugEH++wNc/ dQoH015X3Hw0n5aPPB406OCbHuq+ZUNQpQTga/gsQsWTpnxqZdM10MqCFczO46oYPtMv ywHg== X-Gm-Message-State: ALyK8tJT6Zlqd6qr1HkT7rH9Axj+UlBTwZmwuGS8LvjdDIrGKTtMzYBa2mWfXf+1c1SuoQ== X-Received: by 10.28.166.23 with SMTP id p23mr1648220wme.58.1466493171597; Tue, 21 Jun 2016 00:12:51 -0700 (PDT) Received: from ivaldir.etoilebsd.net ([2001:41d0:8:db4c::1]) by smtp.gmail.com with ESMTPSA id t188sm1466204wma.8.2016.06.21.00.12.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Jun 2016 00:12:50 -0700 (PDT) Sender: Baptiste Daroussin Date: Tue, 21 Jun 2016 09:12:49 +0200 From: Baptiste Daroussin To: Andrey Chernov Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r302026 - in head: share/monetdef share/msgdef share/numericdef share/timedef tools/tools/locale/tools Message-ID: <20160621071249.coi44qjecd67hz32@ivaldir.etoilebsd.net> References: <201606200645.u5K6jhBr081752@repo.freebsd.org> <0de854da-5914-901a-3d15-41429808ace1@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="24bdtrqibjdslz6r" Content-Disposition: inline In-Reply-To: <0de854da-5914-901a-3d15-41429808ace1@freebsd.org> User-Agent: Mutt/1.6.1-neo (2016-06-11) X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.22 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, 21 Jun 2016 07:12:54 -0000 --24bdtrqibjdslz6r Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 20, 2016 at 10:14:04PM +0300, Andrey Chernov wrote: > On 20.06.2016 9:45, Baptiste Daroussin wrote: > > Author: bapt > > Date: Mon Jun 20 06:45:42 2016 > > New Revision: 302026 > > URL: https://svnweb.freebsd.org/changeset/base/302026 > >=20 > > Log: > > Fix generation of locales with multiple variants >=20 > Thanx. > Just want to note, even if we stay with RFC 5646 language tags instead > of ISO 639 ones with @modifier (per ISO 15897), current tags are > incorrect because have "_" instead of "-" which makes parsing harder, > because "_" is territory separator and someone may not expect several > "_" exists. Per RFC 5646 we need names like > sr-Cyrl_RS.UTF-8.src > and not > sr_Cyrl_RS.UTF-8.src >=20 I have a patch that create the @modifier version meaning for instance: sr_RS.UTF-8@[modifier] it also adds an alias sr_RS.UTF-8 which is the cyrillic version (following = the what has been done on linux for this locale) I am seeking for your opinion on a policy to handle the locales with varian= ts. I am hesitating between 2 options: 1/ Provide all locales that may have modifier: - for sr_RS: sr_RS.UTF-8@cyrillic sr_RS.UTF-8@latin and sr_RS.UTF-8 (which is actually the same as sr_RS.UTF-8@cyrillic) - for zh_TW zh_TW.UTF-8@hant and zh_TW.UTF-8 (which is an alias on zh_TW.UTF-8@hant) - for mn_MN mn_MN.UTF-8@cyrillic mn_MN.UTF-8 (which is an alias on mn_MN.UTF-8@cyrillic) 2/ Only provide the @version for the ones for which we have an ambiguity - for sr_RS: sr_RS.UTF-8@latin sr_RS.UTF-8 (would be the cyrillic one) - for zh_TW zh_TW.UTF-8 (no @modifier version) - for mn_MN mn_MN.UTF-8 (no @modifier version) I do like the first (more explicit and simpler to do with our code while st= ill compatible with the second). Linux only does the second. But I understand the first can be confusing for languages with (for now) on= ly one variant supported like users asking themselves: which one should I choose: mn_MN.UTF-8 or mn_MN.UTF-8@cyrillic? They might not now they are actually the same Any opinion? Best regards Bapt --24bdtrqibjdslz6r Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJXaOhZAAoJEGOJi9zxtz5ahX8QALqUh+/49ShThYKudtNNhvxT C3ROihA1eGSweACBAjJ5iprhZtgg0RmM4Jzdzwv+gsTkt92FrShRgdjcErxKUxRo qDwByMlA1b5+ZIETDYcURXkzYHDuMBXjWH58a+antv/6QChY+xPPdKiBuxafMJfy L+/SBKr8eb/WekHF1ZHhZmD6QuGbXtvWIiUPRmAjNlwSCMskn53EfOHOUB+FhD9y 0JSg4/mEVSeurh4aylP/+gEROHybH7X5UNzJMVKf2lYOFBs/b59jluLZhCsQn+Z4 HiI00svmPSisrAQI4ylQsFfxpgkJYvrmwCuxgsdmgiPdYoPJlGsEy9DJBw3bNrcE o16/4iSso4686X/gHqXtAdSFz/nfEJqRFVMalBoB8F/HNk22PWvXTHk9gnepfZvw Ht6OWxt+l51BKAntlYeYoOoH6XUjLOOUF8tEo4QxxtAjsTSlMHp2SXQxQb512S6C Ay+l8J2UhK1Efi10hEJHEmnkHDr4DF2CcAu7g57/Q8meNUuLFcsbjnpxwYph7Fcu 4nYYzQoOQhz2k0fRT3X+YvzR4PqXZVfZArBK+I4BqrREIS8Casbbsr2wCP7z4dxx lemfRAb454pgA22QEVJ1dEWRcbw/Yvwgjfd+0Y12kGoGDbJ+2gFEnitpCt6VkPOa rG8xlmii1lSMxZB1Deoc =VDVy -----END PGP SIGNATURE----- --24bdtrqibjdslz6r--