From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-out.m-online.net (mail-out.m-online.net [IPv6:2001:a60:0:28:0:1:25:1]) by sourceware.org (Postfix) with ESMTPS id 7148E3858D20 for ; Thu, 17 Feb 2022 14:51:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 7148E3858D20 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=linux-m68k.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=nefkom.net Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4JzyT75g4Vz1sF4n; Thu, 17 Feb 2022 15:51:39 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4JzyT75GWpz1qql7; Thu, 17 Feb 2022 15:51:39 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id A1B1ZR_E9Wjr; Thu, 17 Feb 2022 15:51:38 +0100 (CET) X-Auth-Info: F+tKhQLmmCz/r9j5g39NqIB3k1kzgKcTWXmvbqYBOVkwYuXHFRHUd34pNDcJpUuE Received: from igel.home (ppp-46-244-179-199.dynamic.mnet-online.de [46.244.179.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Thu, 17 Feb 2022 15:51:38 +0100 (CET) Received: by igel.home (Postfix, from userid 1000) id 4E7772C3678; Thu, 17 Feb 2022 15:51:38 +0100 (CET) From: Andreas Schwab To: Carlos O'Donell via Libc-alpha Cc: fweimer@redhat.com, Carlos O'Donell Subject: Re: [PATCH 1/2] localedef: Update LC_MONETARY handling (Bug 28845) References: <20220205025700.3728228-1-carlos@redhat.com> <20220205025700.3728228-2-carlos@redhat.com> X-Yow: HOW could a GLASS be YELLING?? Date: Thu, 17 Feb 2022 15:51:38 +0100 In-Reply-To: <20220205025700.3728228-2-carlos@redhat.com> (Carlos O'Donell via Libc-alpha's message of "Fri, 4 Feb 2022 21:56:59 -0500") Message-ID: <87czjlr1fp.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_LOW, RCVD_IN_SORBS_WEB, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org 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: , X-List-Received-Date: Thu, 17 Feb 2022 14:51:43 -0000 On Feb 04 2022, Carlos O'Donell via Libc-alpha wrote: > ISO C17, POSIX Issue 7, and ISO 30112 all allow the char* > types to be empty strings i.e. "", integer or char values to > be -1 or CHAR_MAX respectively, with the exception of > decimal_point which must be non-empty in ISO C. > > We include a broad comment talking about harmonizing ISO C, > POSIX, ISO 30112, and the default C/POSIX locale for glibc. > > We reorder all setting based on locale/categories.def order. > > We soften all missing definitions from errors to warnings when > defaults exist. > > Given that ISO C, POSIX and ISO 30112 allow the empty string > we change LC_MONETARY handling of mon_decimal_point to allow > the empty string. If mon_decimal_point is not defined at all > then we pick the existing legacy glibc default value of > i.e. ".". > > We also set the default for mon_thousands_sep_wc at the > same time as mon_thousands_sep, but this is not a change in > behaviour, it is always either a matching value or L'\0', > but if in the future we change the default to a non-empty > string we would need to update both at the same time. > > Tested on x86_64 and i686 without regressions. > Tested with install-locale-archive target. > Tested with install-locale-files target. Ok. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."