From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 4ECF23858D3C for ; Tue, 12 Sep 2023 19:29:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4ECF23858D3C Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1694546940; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=JCugSEovhDA3bF34VhZbqicRrGhdWxCatCZfBIS/t+0=; b=aEQbVq7YftxaROfCyohEdnDAHFWpVrHsF1lNvdKhViyy5FOL9yzEZHNvJigHWncy3nwFge 90MpqD1nQec4WMlUvKTjDjnynGexWjcMEUTubiSh31a8BArTCnYdE3OdCt/iEKEi1UDXu6 QFPEr9WuUEq1zLt5T6i3kPz+8yB8LwQ= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-416-cRBZQ9sENaWKFSrvn89kAw-1; Tue, 12 Sep 2023 15:28:57 -0400 X-MC-Unique: cRBZQ9sENaWKFSrvn89kAw-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 607DF3C1DC20; Tue, 12 Sep 2023 19:28:57 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.2.16.67]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B66DE1005E27; Tue, 12 Sep 2023 19:28:56 +0000 (UTC) From: Florian Weimer To: Bruno Haible Cc: libc-alpha@sourceware.org Subject: Re: the purpose of locale.alias References: <77018150.VQpxGFKSoK@nimes> <87cyyp2lcm.fsf@oldenburg.str.redhat.com> <2158780.dkkaz22YKf@nimes> Date: Tue, 12 Sep 2023 21:28:55 +0200 In-Reply-To: <2158780.dkkaz22YKf@nimes> (Bruno Haible's message of "Tue, 12 Sep 2023 20:55:32 +0200") Message-ID: <87il8f42dk.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.3 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: * Bruno Haible: >> Without a locale archvie, this seems indeed a use >> case for locale.alias. > > No, without a locale archive, this kind of aliases are automatic, due to > the directory structure on disk and the search algorithm in > glibc/intl/l10nflist.c. See this experiment: > > # localedef --no-archive -i hy_AM -f UTF-8 hy_AM > # LC_ALL=3Dhy_AM locale > (OK) > # LC_ALL=3Dhy_AM.UTF-8 locale > (OK) > # LC_ALL=3Dhy_AM.ISO-8859-1 locale > locale: Cannot set LC_CTYPE to default locale: No such file or director= y > locale: Cannot set LC_MESSAGES to default locale: No such file or direc= tory > locale: Cannot set LC_ALL to default locale: No such file or directory > ... > > This shows that an alias > hy_AM.UTF-8 hy_AM > in locale.alias is not needed. I think the alias is still missing from =E2=80=9Clocale -a=E2=80=9D. I'm n= ot sure if there's a better way of fixing that except for augmenting locale.alias. Suggestions welcome, it's one of our permanently open downstream bugs. 8-/ Thanks, Florian