From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS3215 2.6.0.0/16 X-Spam-Status: No, score=-4.1 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 82A341F852 for ; Wed, 26 Jan 2022 02:44:51 +0000 (UTC) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A24E0385F034 for ; Wed, 26 Jan 2022 02:44:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A24E0385F034 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1643165089; bh=4D7kXapxg0XI1o8mIOonXaxnaEMr7aiOHu/SgsBHQ98=; h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=DNfetRHoAmhGaY8YfPweZfrNtpf++gJFGYSSAaw96mbDoNfOMrTlf8LQpxpboITKZ R5S6j6804hl6w7Ahzr2jpvyE+Tdxwnbh/wpvWGZ2ipzvp/PNVVsrsqiQajhqgPRuR0 ul6xn3nIKzSR6iYIy1GBZYDBoZd7PB3R5AXKPwrU= Received: from smtp-relay-internal-1.canonical.com (smtp-relay-internal-1.canonical.com [185.125.188.123]) by sourceware.org (Postfix) with ESMTPS id 1FDE63858C60 for ; Wed, 26 Jan 2022 02:44:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 1FDE63858C60 Received: from mail-pj1-f71.google.com (mail-pj1-f71.google.com [209.85.216.71]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id D31303F1BE for ; Wed, 26 Jan 2022 02:44:25 +0000 (UTC) Received: by mail-pj1-f71.google.com with SMTP id y14-20020a17090ad70e00b001b4fc2943b3so2068201pju.8 for ; Tue, 25 Jan 2022 18:44:25 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=wC6VT8DFTX6x70yNzYgl27bfHgcFaua1h2ERU79MH2w=; b=H1+joppp3Xvc9kZgvDcLGW6C3WsjXMubiX8iMiGAVdfntE6IjmL7n/jpHLt/Ph46h6 s51eQwKQbiPP4MJBW8m7k9UW+cvHfC3VH600X67S+Mh4SqX3gj3SZH83s2DB7qDIGT31 ZMN5FB3l+EmJIL5tLJCrAW8r327hKaXxP+BWCPMx5rKdDnP4qM/HmyfwvipUSz5PqL9P U2i4KG/CO36VTh44hCWdyTVEYIL4vAIPLb8xarVJETEej6lLiw5vVBTU2TC1mAnKzlrE QoNx6J706v7mIBnNoGalJgXZ6G/ydkRVVEOCPQFmpkcoCOVaCNN90kWxxFxAjpOUEx5k BwGA== X-Gm-Message-State: AOAM533qVxQiuRp4xrWHsgMGkW8rhp8Fup/7TPfJs7Hc92Ti2hGdwWVF KDEjA5NOcNJJsKOV/HgyJzreR9bGuHP96fbDTPnb4t5ihXvUn6kHgG5/w0qhAJwxTBIN8+K1mET JgB+K/fGQ80x36+iM88+ajya9jqlTQSyg3EkdrhzbtZ4YNRA50o1iqA== X-Received: by 2002:a63:8c:: with SMTP id 134mr17450944pga.599.1643165064327; Tue, 25 Jan 2022 18:44:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJzqGGPgmD81D6PkCtEO8ywMz/3We4ejGEQYKhhyWoB+6qmn7xhrSqKMSSdL5dfvlR8l/3gsbH9yqLO43UisgQw= X-Received: by 2002:a63:8c:: with SMTP id 134mr17450929pga.599.1643165064040; Tue, 25 Jan 2022 18:44:24 -0800 (PST) MIME-Version: 1.0 References: <20210906154336.610973-1-carlos@redhat.com> <20210906154336.610973-3-carlos@redhat.com> In-Reply-To: <20210906154336.610973-3-carlos@redhat.com> Date: Wed, 26 Jan 2022 15:44:13 +1300 Message-ID: Subject: Re: [PATCH v12 2/2] Add generic C.UTF-8 locale (Bug 17318) To: "Carlos O'Donell" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Michael Hudson-Doyle via Libc-alpha Reply-To: Michael Hudson-Doyle Cc: Florian Weimer , libc-alpha@sourceware.org Errors-To: libc-alpha-bounces+e=80x24.org@sourceware.org Sender: "Libc-alpha" On Tue, 7 Sept 2021 at 03:45, Carlos O'Donell via Libc-alpha < libc-alpha@sourceware.org> wrote: > diff --git a/localedata/locales/C b/localedata/locales/C > new file mode 100644 > index 0000000000..ca801c79cf > --- /dev/null > +++ b/localedata/locales/C [...] > > +LC_TIME > +% This is the POSIX Locale definition for the LC_TIME category with the > +% exception that time is per ISO 8601 and 24-hour. > +% > +% Abbreviated weekday names (%a) > +abday "Sun";"Mon";"Tue";"Wed";"Thu";"Fri";"Sat" > + > +% Full weekday names (%A) > +day "Sunday";"Monday";"Tuesday";"Wednesday";"Thursday";/ > + "Friday";"Saturday" > + > +% Abbreviated month names (%b) > +abmon "Jan";"Feb";"Mar";"Apr";"May";"Jun";"Jul";"Aug";"Sep";/ > + "Oct";"Nov";"Dec" > + > +% Full month names (%B) > +mon "January";"February";"March";"April";"May";"June";"July";/ > + "August";"September";"October";"November";"December" > + > +% Week description, consists of three fields: > +% 1. Number of days in a week. > +% 2. Gregorian date that is a first weekday (19971130 for Sunday, > 19971201 for Monday). > +% 3. The weekday number to be contained in the first week of the year. > +% > +% ISO 8601 conforming applications should use the values 7, 19971201 (a > +% Monday), and 4 (Thursday), respectively. > +week 7;19971201;4 > It's obviously a bit late, but this is a difference from the Debian/Ubuntu C.UTF-8 locale, which has: week 7;19971130;4 (confusingly, this is preceded by this comment: % ISO 8601 conforming applications should use the values 7, 19971130 (a % Monday), and 4 (Thursday), respectively. but 19971130 is a Sunday). The locale(5) page from the man-pages project also says: "For compatibility reasons, all glibc locales should set the value of the second week list item to 19971130 (Sunday) and base the abday and day lists appropriately,". I found this because it breaks a test of rrdtool (which is probably buggy! It sets LC_TIME but needs to clear LC_ALL for that to take any effect) and I just wanted to check that this was truly the intended value before (even if only just) the release. Cheers, mwh > +first_weekday 1 > +first_workday 2 > + > +% Appropriate date and time representation (%c) > +d_t_fmt "%a %b %e %H:%M:%S %Y" > + > +% Appropriate date representation (%x) > +d_fmt "%m/%d/%y" > + > +% Appropriate time representation (%X) > +t_fmt "%H:%M:%S" > + > +% Appropriate AM/PM time representation (%r) > +t_fmt_ampm "%I:%M:%S %p" > + > +% Equivalent of AM/PM (%p) > +am_pm "AM";"PM" > + > +% Appropriate date representation (date(1)) > +date_fmt "%a %b %e %H:%M:%S %Z %Y" > +END LC_TIME >