From patchwork Fri Jan 12 08:20:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rafal Luzynski X-Patchwork-Id: 25359 Received: (qmail 90770 invoked by alias); 12 Jan 2018 08:20:26 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 90698 invoked by uid 89); 12 Jan 2018 08:20:25 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-23.9 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_LAZY_DOMAIN_SECURITY autolearn=ham version=3.3.2 spammy=month, sie X-HELO: aev204.rev.netart.pl X-Spam-Score: 0 Date: Fri, 12 Jan 2018 09:20:22 +0100 (CET) From: Rafal Luzynski Reply-To: Rafal Luzynski To: libc-alpha@sourceware.org Message-ID: <321740942.38177.1515745222130@poczta.nazwa.pl> In-Reply-To: <1802414843.37687.1515744747279@poczta.nazwa.pl> References: <1802414843.37687.1515744747279@poczta.nazwa.pl> Subject: [PATCH v12 6/6] pl_PL: Add alternative month names (bug 10871). MIME-Version: 1.0 X-Originating-Client: com.openexchange.ox.gui.dhtml [BZ #10871] * localedata/locales/pl_PL: Alternative month names added, primary month names are genitive now. * time/tst-strptime.c (day_tests): Actually use a genitive case of a month name in Polish language. --- localedata/locales/pl_PL | 14 +++++++++++++- time/tst-strptime.c | 3 +-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/localedata/locales/pl_PL b/localedata/locales/pl_PL index 2a8d09d..632a1b3 100644 --- a/localedata/locales/pl_PL +++ b/localedata/locales/pl_PL @@ -175,7 +175,7 @@ abmon "sty";"lut";/ "lip";"sie";/ "wrz";"pa";/ "lis";"gru" -mon "stycze";/ +alt_mon "stycze";/ "luty";/ "marzec";/ "kwiecie";/ @@ -187,6 +187,18 @@ mon "stycze";/ "padziernik";/ "listopad";/ "grudzie" +mon "stycznia";/ + "lutego";/ + "marca";/ + "kwietnia";/ + "maja";/ + "czerwca";/ + "lipca";/ + "sierpnia";/ + "wrzenia";/ + "padziernika";/ + "listopada";/ + "grudnia" d_t_fmt "%a, %-d %b %Y, %T" d_fmt "%d.%m.%Y" t_fmt "%T" diff --git a/time/tst-strptime.c b/time/tst-strptime.c index 2eac5a2..49dfbe9 100644 --- a/time/tst-strptime.c +++ b/time/tst-strptime.c @@ -60,8 +60,7 @@ static const struct /* Some languages do need the declension of the month names. */ { "pl_PL.UTF-8", "21 lis 2017", "%d %b %Y", 2, 324, 10, 21 }, { "pl_PL.UTF-8", "22 LIS 2017", "%d %B %Y", 3, 325, 10, 22 }, - /* TODO: Use the genitive case here as soon as it is added to localedata. */ - { "pl_PL.UTF-8", "23 listopad 2017", "%d %B %Y", 4, 326, 10, 23 }, + { "pl_PL.UTF-8", "23 listopada 2017", "%d %B %Y", 4, 326, 10, 23 }, /* The nominative case is incorrect here but it is parseable. */ { "pl_PL.UTF-8", "24 listopad 2017", "%d %OB %Y", 5, 327, 10, 24 }, { "pl_PL.UTF-8", "25 lis 2017", "%d %Ob %Y", 6, 328, 10, 25 },