From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id QDvDOVVxJ2J0iwAAgWs5BA (envelope-from ) for ; Tue, 08 Mar 2022 16:08:05 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id qNguN1VxJ2J78gAA9RJhRA (envelope-from ) for ; Tue, 08 Mar 2022 16:08:05 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 4177B3FD36 for ; Tue, 8 Mar 2022 16:08:05 +0100 (CET) Received: from localhost ([::1]:41502 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nRbRU-000666-5J for larch@yhetil.org; Tue, 08 Mar 2022 10:08:04 -0500 Received: from eggs.gnu.org ([209.51.188.92]:37440) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nRbMA-0006Uk-2n for help-guix@gnu.org; Tue, 08 Mar 2022 10:02:34 -0500 Received: from [2001:9b1:8633::107] (port=59876 helo=uggla.sjd.se) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nRbM5-0001Oa-Uf for help-guix@gnu.org; Tue, 08 Mar 2022 10:02:33 -0500 DKIM-Signature: v=1; a=ed25519-sha256; q=dns/txt; c=relaxed/relaxed; d=josefsson.org; s=ed2110; h=MIME-Version:Content-Type:References:In-Reply-To :Date:To:From:Subject:Message-ID:Sender:Reply-To:Cc:Content-Transfer-Encoding :Content-ID:Content-Description; bh=d3FYQN2JzrHFuGC8ojj1b1RhODUE/BbRWToVm+P/dzI=; t=1646751749; x=1647961349; b=bYGFHdnWWhPVnNi3lbA2fdBNXaAWKvK2rKwnwXfGe+mr4Q09F5/ktd9GxzJFcBOTXXZHhdtOyvt 3YpoBPB0ODQ==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=josefsson.org; s=rsa2110; h=MIME-Version:Content-Type:References: In-Reply-To:Date:To:From:Subject:Message-ID:Sender:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description; bh=d3FYQN2JzrHFuGC8ojj1b1RhODUE/BbRWToVm+P/dzI=; t=1646751749; x=1647961349; b=POotKfg9HgShy6LPgNCdl/qlQCWHWhyknIdU4w+36sW5d+t7a+PQisSlr7r6Q/HCAbfwXVgvgw2 5rqxPdnTd9sYfA7zFyLMF4EXxw0c76Jn93Q9IL5P8I1/C/GwXaiONlzr/b8IGxSRmMU8GqMPKZfSJ PLi7SET6ilHTjSeIuvmJ4Pjpdk8NU19klAeN2R2JYXyiY/vZIK9ec11jA+3iHpLKQAivyzjxqCxoV 3wfosQi4u1/ZS/c1Q02qftpWHGwJyMpH5cMEdERz7zdkRWAG73eVKGEl+gvJ8AFgVGF4ovI4aYY13 HiwMFDk1n1wzVz+KiB+9zKGHj7+NF4LMZf+RpHn79wvNwucIVatnc5hBZN2lPtuBvffuyuxu9rWav H9TNktJFD19xM0ysFtG8pdS0CKUardudjlZGAjmf18qfqQ7bvPSX0EKz1jxM4rAW9vEQUXinh; Received: from [2001:9b1:41ac:ff00:f791:6652:cb2b:9479] (port=50408 helo=h-2001-9b1-41ac-ff00-f791-6652-cb2b-9479.na.bahnhof.se) by uggla.sjd.se with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nRbM1-000SmB-I3; Tue, 08 Mar 2022 16:02:25 +0100 Message-ID: Subject: Re: glibc-utf8-locales To: Tobias Geerinckx-Rice , help-guix@gnu.org Date: Tue, 08 Mar 2022 16:02:25 +0100 In-Reply-To: <14959AD1-B285-41C0-9961-166F02D8B179@tobias.gr> References: <87wnh4bw9f.fsf@latte.josefsson.org> <14959AD1-B285-41C0-9961-166F02D8B179@tobias.gr> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-a33rpt3NULMHoWblwnfu" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 X-Host-Lookup-Failed: Reverse DNS lookup failed for 2001:9b1:8633::107 (failed) Received-SPF: pass client-ip=2001:9b1:8633::107; envelope-from=simon@josefsson.org; helo=uggla.sjd.se X-Spam_score_int: -35 X-Spam_score: -3.6 X-Spam_bar: --- X-Spam_report: (-3.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RDNS_NONE=0.793, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" Reply-to: Simon Josefsson From: Simon Josefsson via X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1646752085; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=d3FYQN2JzrHFuGC8ojj1b1RhODUE/BbRWToVm+P/dzI=; b=J/BAMLEw5v7nJYDZ3b+ewWTLxtEyol+3rY/pzH4351UdryPEixUzR5rvY6+Cm4+m+d/MYO 7aJ4bauJvp1+qVWPsNvtgk9F+idsBb6QikcJOiPHemkVc9OUqdCsVt8KVXb+nVvkp2DPuJ Sg0Msgb7FeI+mqlqq+UfZQrEpOjug3OaHob6vvo2UQCv5+kGCK1f9aqE1xnlvwu9b2fY6O 2s2R8bD0+ZGdQTSlnDtkRUWBFOobSiEtCAoKNDmyuAkWD3G2YG//DZZP9ZryMAYvCyMZJf xqbI6wwyb+SPEZsswn4dTFOt4fA8hEzxRbb4xCWeH3NeK6eDR6H5AXQnR3gunQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1646752085; a=rsa-sha256; cv=none; b=snEqd6AKUBnjBnhjd5j4pC4w9fQpG3QpQjqxh0bu3njxctP/GeBzrFUxAwmbf7J7Efu2rM c21mOn91nm9U3uD17fYU39j+FKffsuEfXLbwAiVu3Tda8ROnxdZaDIXOr5FUkhhzLtjfgK gdprxfDoalJl3haggBR0j76+oU0Qlt/qrU4QBtgTWbgRWFf1e7mPMV7JrIr/Ycdq2ZKHbt +sC64wQ8juuazTwD8vORDS/49wnKQoOvyuqabXNp4dVOBVYAOYpT62CFnSlc2Y+wovG/dL R0rXyXHiZ7CanYolxAG+zVWdxb9YIUopsfc37YC3UD/AvrvkHY7b6HG7e84+eA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers eddsa verify failed") header.d=josefsson.org header.s=ed2110 header.b=bYGFHdnW; dkim=fail ("headers rsa verify failed") header.d=josefsson.org header.s=rsa2110 header.b=POotKfg9; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.82 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers eddsa verify failed") header.d=josefsson.org header.s=ed2110 header.b=bYGFHdnW; dkim=fail ("headers rsa verify failed") header.d=josefsson.org header.s=rsa2110 header.b=POotKfg9; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 4177B3FD36 X-Spam-Score: -5.82 X-Migadu-Scanner: scn1.migadu.com X-TUID: N826K8pR3GPo --=-a33rpt3NULMHoWblwnfu Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable tis 2022-03-08 klockan 10:28 +0000 skrev Tobias Geerinckx-Rice: > Hullo Simon, >=20 > Simon Josefsson via wrote: > > First, I wonder if this is optimal.=C2=A0 There must be many machines > > (servers and embedded) where having all locales installed on is > > wasteful, but where it is useful to have the C.UTF-8 and/or > > en_US.UTF-8 > > installed, to get minimal working UTF-8 support.=C2=A0 Making this hard > > to > > achieve for users seems unhelpful to me.=C2=A0 I understand the > > motivation > > for the patch >=20 > I don't think you do, if that's what you thought it was ;-)=20 Sorry I was unclear -- I reckon the motivation for the patch was that the semantics with the old glibc-utf8-locales package was confusing (not containing all UTF-8 locales). Still, I think the old package did provide some useful aspect which is now lost, and has to be worked around with more complex logic. Offering a newer more simple solution is what I'm asking for. Meanwhile I'm happy to use the more complex solution that you helped me with (below). > > (append (map specification->package > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 '("gl= ibc-useful-swedish-utf8-locales" >=20 > You have a (probably left-over) specification->package call but no > "glibc-useful-swedish-utf8-locales"=C2=A0 package in Guix for it to find.= =C2=A0 > It does not search the environment. >=20 > Remove the spec and refer to your custom variable directly, e.g.: >=20 > =C2=A0 (packages (append (list glibc-useful-swedish-utf8-locales ...) > ...)) Thanks, I managed to get it to work now: https://gitlab.com/jas/sjd-cosmos/-/blob/master/hamster.josefsson.org/overl= ay/etc/config.scm https://gitlab.com/jas/sjd-cosmos/-/commit/cecbdf4ad834c3d06e1344d843582ac1= defa935b However, I'm not sure it is fully working, 'locale -a' gives me more than just the locales I specified?! Yes I did successful 'system reconfigure' and reboot into new system. /Simon root@hamster ~# /gnu/store/2fk1gz2s7ppdicynscra9b19byrrr866-glibc- 2.33/bin/locale -a C ca_ES.utf8 cs_CZ.utf8 da_DK.utf8 de_DE.utf8 el_GR.utf8 en_AU.utf8 en_CA.utf8 en_GB.utf8 en_US.utf8 en_US.UTF-8 es_AR.utf8 es_CL.utf8 es_ES.utf8 es_MX.utf8 fi_FI.utf8 fr_BE.utf8 fr_CA.utf8 fr_CH.utf8 fr_FR.utf8 ga_IE.utf8 it_IT.utf8 ja_JP.utf8 ko_KR.utf8 nb_NO.utf8 nl_NL.utf8 pl_PL.utf8 POSIX pt_PT.utf8 ro_RO.utf8 ru_RU.utf8 sv_SE.utf8 tr_TR.utf8 uk_UA.utf8 vi_VN.utf8 zh_CN.utf8 root@hamster ~#=20 --=-a33rpt3NULMHoWblwnfu Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQSjzJyHC50xCrrUzy9RcisI/kdFogUCYidwAQAKCRBRcisI/kdF othRAQCHIdqLUDifTxZ6Cls0DCAGs2yRzYMCF6tadnGW/SWNmgEAxcZytZeyDU/2 lRMtCS6hpMrmBbc4s8Vob70mEdY+3Ao= =BCoT -----END PGP SIGNATURE----- --=-a33rpt3NULMHoWblwnfu--