From patchwork Tue Jan 9 23:23:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Yingxiang Yao X-Patchwork-Id: 83697 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 2F406385828F for ; Tue, 9 Jan 2024 23:25:59 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by sourceware.org (Postfix) with ESMTPS id 443EC3858D33 for ; Tue, 9 Jan 2024 23:25:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 443EC3858D33 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=kasumi321.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=kasumi321.de ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 443EC3858D33 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=66.111.4.28 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704842720; cv=none; b=t311uRLaCBNPgZv7H4H3rIYgiAGWGcrExUcW16NvjKlCh5S5kGaYywimBXm11gOX8hbyg1dlvnwxMVypRT1r8sjCgIDNRNg5FerSshzpyYuJs4I8cUqXKp/xyxbS/NgXHwTscD3M+EZhZ2BLfUW1kxZ4QwQOFTfax3P9p4jgPZM= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704842720; c=relaxed/simple; bh=4ihAje6j56j1YmIEk9JGgZ/N72bb7/xzwWOoLEqFqDk=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-Id: MIME-Version; b=hphDu0X9zkM2E6dbkSYQOTVCRltxGCZbFq29eciLCzp5wTrTEshHFB39pxxVcOxsVYWJqQjdhOX+wtf9ksUttnt7tdfPk5h9DmwIAkFp7Gia2+BUIZBrd8CjMou73czKDrKxVDynDnFqYoxJ6ALjZNIQZsrQ+usBrZ8lD7l3FIw= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 6D5C75C0134; Tue, 9 Jan 2024 18:25:15 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Tue, 09 Jan 2024 18:25:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kasumi321.de; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:message-id:mime-version:reply-to :subject:subject:to:to; s=fm1; t=1704842715; x=1704929115; bh=wq CN1E7nXah8aAFsiqdr3PKc6/mDd1NOcVv059TGoH4=; b=Ndr2LjNeyzxpMwLP8B V6ct6FmYszcX4CpK5h7QexO5e9sA0UTNS7sCywzlAvTI1ZXMGo7HKec8XUtSQuSx BF3kRUtvGV/Yp+l/Z9BbIkZ1bqx1S/x6BOqlIWpfY1a8mzrxHnfGmsJCFtpCoq/Z 2pjsqMMkAq+iEwPVjnnHBc4z5oHJkxJ1SmSKBKpXmKV2RWSS3/rLdXEsOTZe3Jco Vitvt6Kj7a4UcQWpeYUUGjw4e4NztZWom2sbdMLQCMqCC7VRhyklYHqBk2tbm3XT EwiUyv5z0mXj0UAXAj91/J9H8Onb+E9gZ4UOKcoTX7C0cxyB2hjQQm0zSSy5Z4Zu 9a6w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:message-id:mime-version:reply-to:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1704842715; x=1704929115; bh=wqCN1E7nXah8a AFsiqdr3PKc6/mDd1NOcVv059TGoH4=; b=h/XqOEKzUj9Qe+bdiB2+7SAJI+eZ4 jQSto3+MPHiu4SSnpxSTfpIg4K7/x1mRdcnTpGR3KTpn8sFJLuHISXxyUehhKFCI S8XFP9taU6cIb3bEXf5JL7uEz2IGyqMkLsai2eV6DfmPVNw5fwOAfX4mPrG6I9wM Fo34a9gK8zvqd0syLiJ2yFQwouMtZrIYswQ0Sp4fH+g/JWIaTYwFL1i1jz4jv+BY W5iqPmnZ1DSXDf/mNCW0BOqAtnWSNgwBLW6qCL8yM44htmg2U//6q7o40u11qxTT Lfpj9a4kctAQYesYBlDXoP+RcHFi7Tjus2KxUM3LHJQAib8Wp0G+/HTlQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdeitddguddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvfevufffkffogggtgfesthekre dtredtjeenucfhrhhomhepjghinhhggihirghnghcujggrohcuoeihihhnghigihgrnhhg rdihrghosehkrghsuhhmihefvddurdguvgeqnecuggftrfgrthhtvghrnhepffevudfhud eivedtteekieduhfdulefhueehkeejtefgteetfeeiheekhefhtdffnecuffhomhgrihhn pehgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomhephihinhhggihirghnghdrhigroheskhgrshhumhhifedvuddruggv X-ME-Proxy: Feedback-ID: i31f94679:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 9 Jan 2024 18:25:14 -0500 (EST) From: Yingxiang Yao To: libc-alpha@sourceware.org Cc: maiku.fabian@gmail.com, Yingxiang Yao Subject: [PATCH] Added definition for new locale en_EU Date: Wed, 10 Jan 2024 00:23:21 +0100 Message-Id: <20240109232320.8942-1-yingxiang.yao@kasumi321.de> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Spam-Status: No, score=-13.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, JMQ_SPF_NEUTRAL, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE, WEIRD_QUOTING autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Hello, I am writing to propose the definition of new locale en_EU, intended to use as a common locale code for the english language used in continental Europe. Regards, Yingxiang Yao --- localedata/locales/en_EU | 163 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 163 insertions(+) create mode 100644 localedata/locales/en_EU diff --git a/localedata/locales/en_EU b/localedata/locales/en_EU new file mode 100644 index 0000000000..5c84a1ef9e --- /dev/null +++ b/localedata/locales/en_EU @@ -0,0 +1,163 @@ +comment_char % +escape_char / + +% This file is part of the GNU C Library and contains locale data. +% The Free Software Foundation does not claim any copyright interest +% in the locale data contained in this file. The foregoing does not +% affect the license of the GNU C Library as a whole. It does not +% exempt you from the conditions of the license if your use would +% otherwise be governed by that license. + +% English language locale for the European Union +% Contact "Yingxiang Yao" +% Email "yingxiang.yao@kasumi321.de" +% Written according to POSIX.2 +% ISO/IEC 9945-2:1993 specifications +% Based on implementation of en-DK + + +LC_IDENTIFICATION +title "English locale for European Union" +source "Free Software Foundation, Inc." +address "https:////www.gnu.org//software//libc//" +contact "" +email "bug-glibc-locales@gnu.org" +tel "" +fax "" +language "English" +territory "European Union" +revision "1.0" +date "2024-01-09" + +category "i18n:2012";LC_IDENTIFICATION +category "i18n:2012";LC_CTYPE +category "i18n:2012";LC_COLLATE +category "i18n:2012";LC_TIME +category "i18n:2012";LC_NUMERIC +category "i18n:2012";LC_MONETARY +category "i18n:2012";LC_MESSAGES +category "i18n:2012";LC_PAPER +category "i18n:2012";LC_NAME +category "i18n:2012";LC_ADDRESS +category "i18n:2012";LC_TELEPHONE +category "i18n:2012";LC_MEASUREMENT +END LC_IDENTIFICATION + +LC_COLLATE +copy "iso14651_t1" +END LC_COLLATE + +LC_CTYPE +copy "en_GB" +END LC_CTYPE + +% Actually not all EU countries are using Euro, but to keep the stuff not to complex, I still make it as following +LC_MONETARY +int_curr_symbol "EUR " +currency_symbol "€" +mon_decimal_point "," +mon_thousands_sep "." +mon_grouping 3;3 +positive_sign "" +negative_sign "-" +int_frac_digits 2 +frac_digits 2 +p_cs_precedes 1 +p_sep_by_space 0 +n_cs_precedes 1 +n_sep_by_space 0 +p_sign_posn 1 +n_sign_posn 1 +END LC_MONETARY + +LC_NUMERIC +decimal_point "," +thousands_sep "." +grouping 3;3 +END LC_NUMERIC + +LC_TIME +abday "Sun";"Mon";"Tue";"Wed";"Thu";"Fri";"Sat" +day "Sunday";/ + "Monday";/ + "Tuesday";/ + "Wednesday";/ + "Thursday";/ + "Friday";/ + "Saturday" +abmon "Jan";"Feb";/ + "Mar";"Apr";/ + "May";"Jun";/ + "Jul";"Aug";/ + "Sep";"Oct";/ + "Nov";"Dec" +mon "January";/ + "February";/ + "March";/ + "April";/ + "May";/ + "June";/ + "July";/ + "August";/ + "September";/ + "October";/ + "November";/ + "December" +% date formats following ISO 8601-1988 +d_t_fmt "%Y-%m-%dT%T %Z" +date_fmt "%Y-%m-%dT%T %Z" +d_fmt "%Y-%m-%d" +t_fmt "%T" +am_pm "";"" +t_fmt_ampm "" +week 7;19971130;4 +first_weekday 2 +END LC_TIME + +LC_MESSAGES +% en_EU is used as some sort of generic continental +% European English locale. Therefore, it makes sense to have matches +% for more than just English in yesexpr: +% + is used in many applications for yes (- for no) +% 1 is common yes, 0 is common no, - langage neutral +% Jj is Danish/German/Swedish/Norwegian/Dutch "ja" +% sS is Spanish/Italian "si" +% yY is English "yes" +% oO is French "oui" +yesexpr "^[+1yYjJsSoO]" +noexpr "^[-0nN]" +yesstr "yes" +nostr "no" +END LC_MESSAGES + +LC_PAPER +copy "i18n" +END LC_PAPER + +LC_TELEPHONE +tel_int_fmt "+%c %a %l" +tel_dom_fmt "%A %l" +int_select "00" +END LC_TELEPHONE + +LC_MEASUREMENT +copy "i18n" +END LC_MEASUREMENT + +LC_NAME +name_fmt "%d%t%g%t%m%t%f" +END LC_NAME + + +LC_ADDRESS +postal_fmt "%f%N%a%N%d%N%b%N%s %h %e %r%N%z %T%N%c%N" +country_name "European Union" +country_ab2 "EU" +% country_ab3 "EUU" no 3 digit code is defined for EU +% country_num 208 no country number is defined for EU +% country_car "EU" no car plate code is defined for EU +lang_name "English" +lang_ab "en" +lang_term "eng" +lang_lib "eng" +END LC_ADDRESS