From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id SOcrO5QmW2b/VQEAqHPOHw:P1 (envelope-from ) for ; Sat, 01 Jun 2024 15:48:05 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id SOcrO5QmW2b/VQEAqHPOHw (envelope-from ) for ; Sat, 01 Jun 2024 15:48:05 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=wolfsden.cz header.s=mail header.b=oiraP9dG; dkim=pass header.d=wolfsden.cz header.s=mail header.b=lvtt+9+d; dmarc=pass (policy=none) header.from=wolfsden.cz; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1717249684; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=QWKCrSp01gxyd+aSpSKhNR7AlblYn+lUcCIH19AEZ1M=; b=YR4/UujoU9tCohHdO/xtUo2WBjVUo/cxDYH41gkCOsDMcifqEt8Nswfzx74xuRoFg88+bt CpNs1QMGGocAvyLvU6cPV5TnPfZoINwHM/WLUIAUMKTM7Ffan6kFRGmB19VoXat0ipqIbr W7f65U/PboTtJebrXqqw0+SrLCClbSRFULyKe2cCn8aDDJ5m7clvQY4zjzp4pBDWRw2n6a EtPyMJ5XSONdPst26lMXVBlTORctm0jLtTzx9XnILDCLkSL5mwNv50F4YrycbwllVjGsCA 0MwA9FayTDYXEHeVk9Yjrh1V5e013y7eivyw07gZ6DuUA+DKzoiKpGQYOpcIpA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1717249684; a=rsa-sha256; cv=none; b=J8mKVLyjrkfpkhZIL9ncAm68wMNvm773XimPwyRD9qc0mo9dvvcqb79y0SxjqP3Gv5jzZ6 VFeedQRItERULk2HJcrHGBnvYOulWXLjMxPHykhR6n8h6KKgCJCzf+HIOer//3Zhrx7BQy p0kDqUi7aOc2KeIvzeMEsj34rddWpNsZ52ynuOHCIod88laTvbHRspgNvRbNWi618qbPqy MfghQOeRjSrruWD6WRagnbmDA2kmOTtmfVeqCxoXEIH+aOXAcl+HaBtHGVuxoI0YlrQdPR 4rInSUU+R2wN/vNJn7pcRYdTvjs0bOm0GbrKXrOXDjT0pON8y6fcZMCAQNCbyg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=wolfsden.cz header.s=mail header.b=oiraP9dG; dkim=pass header.d=wolfsden.cz header.s=mail header.b=lvtt+9+d; dmarc=pass (policy=none) header.from=wolfsden.cz; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" 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 D0865381B6 for ; Sat, 01 Jun 2024 15:48:04 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sDP5A-0004SE-Qo; Sat, 01 Jun 2024 09:47:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <~@wolfsden.cz>) id 1sDP58-0004Rp-EL for guix-devel@gnu.org; Sat, 01 Jun 2024 09:47:38 -0400 Received: from wolfsden.cz ([37.205.8.62]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <~@wolfsden.cz>) id 1sDP56-0005R7-5k; Sat, 01 Jun 2024 09:47:38 -0400 Received: by wolfsden.cz (Postfix, from userid 104) id 79C1824FE04; Sat, 1 Jun 2024 13:47:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1717249651; bh=+OnmpBV46bjvutUap05pkvqzDpMaH4JUHCi7ilLAaSk=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=oiraP9dGE5qy3IHnl5QUgixAAxSTYrsw3aRqMB8/oZ3w6Ezmd4gndTfNAGdZaQ4+W uRI30UDHxmXNZjiM5yfVMLSRiwuiyuwcI4yB0/86trtQgD7Tv9Hr4XS8iRqKMUhmkD 6ePDFuLUbwAW/yurNwDd8ovs8On/IWcaTGO7gRtQS55OZJo3ITpcJShAWy1hjX/Myi UQRdBJmuHoK01krrC0ucPaBBt+tT2ZtrYGVL3pOUwAplrPukYgG5QChRPcRWWNjO2q gUbkI5mru1w+eahWeCaGYudY0t7GWGxynFEGmermv8JsxNLbJ8ueDjQFW8BXsMMu9P ekN+T1DrZf6/WGZQLBLBOJ+KjeagLKUKwItMafx03R0xB6RlrwLyL06BrWFwYhFzCf 6nUWvpQuom7TWonCYx+4JOIS/x3OyLpc1i3p1Rrk9OLQk6uAD0jmeoW4lROJVVs8k2 buRsurk6stVXAxiQUlMtItQEkVFKmhQuaUL0Kgy2Wu6Jr5kLUIdY5yCJT16BefkTxa O95/XubrBfTiE/cMsNalog0wMwczsreWoQWQiX1xIAJ8+BUPupjLT7aZcTlLSh3j1N xvAN+WYHHGvXDRqpbCqOrtfeZrvOwxI6Mu8LY85L6iaxADuroUC3SxAVGQ7cYljC8V PSwgmnUOsnZHFtD3X/CGU6MY= Received: from localhost (unknown [193.32.127.154]) by wolfsden.cz (Postfix) with ESMTPSA id D00D024F89B; Sat, 1 Jun 2024 13:47:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1717249649; bh=+OnmpBV46bjvutUap05pkvqzDpMaH4JUHCi7ilLAaSk=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=lvtt+9+dpgGltqyR8pRHQcfb2EJD+rkIyiI9IdvHUcY45xBc0Fzjn4V1+U4qqmAZg Lcb2lFc9yAiCkFjWvnVpiES2yhbdzKBUPBZEwcChhS8DUYi6WvRWjaqvTTNo1S1N9M n4FbxeUmMrf7+Dl5kjoRGEEuZE73RetU0l5FubiEOVcAJpc+WBWUtMMqgwsiUNVk6k 1GXSyp+VqxTvDkIymraf0dd7MAKh3cEct8q4dQwB+KWJCoigDyfxg9dr7IucBN3qcW MA86oXBK6QVm+KFjMQINACzY/HQljG8v2abbXuZAsmspXeOKPljvGKvQObGetenC2A M9OKZnWt6dqQ34QRJyx/LTWHmvrb9PgjOTuwThA7OxOjBUilcgmIssfqw0dTgHIlY6 xxE1EhnE+K37IYcIeBVJer8PV0Zkt35geLwER4od2PVabbyCcujO98xAwbrPSLaK0L yDVLTTIoqdQpI0VWkaQwh0NOXbu/DOPgtfoTx81Pgultqd2bnq54PB/9uTfYL4qFtj 8vvqJKQ4J7M7gat75LKxYCtUem2tZmi7un01GLT4TvS5NUQr88HXRDvPrUcCIRyvc0 mffvJdX1jVZPqK5C4DFw7mJ5+1km0fc7CiGiSk1qmcv9/9hotvpL27pzdOWYSXP7RQ bPGojHTjFbd6HTURZ74pfgyE= Date: Sat, 1 Jun 2024 15:47:29 +0200 From: Tomas Volf <~@wolfsden.cz> To: Ludovic =?iso-8859-1?Q?Court=E8s?= Cc: guix-devel@gnu.org Subject: Re: How to write a compute-file producing utf8 output? Message-ID: Mail-Followup-To: Ludovic =?iso-8859-1?Q?Court=E8s?= , guix-devel@gnu.org References: <877cf8pys3.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="HuQznR6vRqTkkZhP" Content-Disposition: inline In-Reply-To: <877cf8pys3.fsf@gnu.org> Received-SPF: pass client-ip=37.205.8.62; envelope-from=~@wolfsden.cz; helo=wolfsden.cz X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, 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: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -7.47 X-Spam-Score: -7.47 X-Migadu-Queue-Id: D0865381B6 X-Migadu-Scanner: mx11.migadu.com X-TUID: sN8u9bgTXuQy --HuQznR6vRqTkkZhP Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2024-06-01 15:39:56 +0200, Ludovic Court=C3=A8s wrote: > Tomas Volf <~@wolfsden.cz> skribis: > > > I am currently struggling when trying to create a computed-file produci= ng > > internationalized content. Simple reproducer is: > > I think you found out in the meantime :-), but for posterity, one > possibility is to set =E2=80=98%default-port-encoding=E2=80=99: > > (fluid-set! %default-port-encoding "UTF-8") Thanks for the information :) While this approach works (even the set-port-encoding! does), the problem w= ith this approach is that this needs to be put into every computed-file, making= it easy to forget (especially with #$random-variable, where you might not even= know if Unicode is present or not). And is not possible at all with likes of program-file. So I still hope someone manages to take a look at https://issues.guix.gnu.org/71257 which should just fix it for everyone acr= oss majority of the G-exp forms. Have a nice day, Tomas Volf -- There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors. --HuQznR6vRqTkkZhP Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEt4NJs4wUfTYpiGikL7/ufbZ/wakFAmZbJnEACgkQL7/ufbZ/ waneKw//Ycs6JjmpqoA3fifj8x2ePQN8G9VQf5FN6FM8pWrXn7R3QvzN//R9my/x if7LKSYXO51VT18E6cgXhKkk6JvrmXYdZ/MdxibTUzQKqFzzGgk8z8SpRceq0zjJ VCfBXAH5GiG7f4p+3ZVq9MPP4X1q3mQ7Yy8V6yogi0n7aEdHX/b9ewHoKcvvlGkd bEDtckyZRy7hRUtUYuh4Y7gl368/GGUHbeC+xWomSb1AkU4/D0lqN52C+LGqwLEr tQ4EWf5ZarwyL342FaRTl4ctazCjNVyRap/oKnMr9Sa2zppdbtMDCrTnlBxUpopX Nq2hnILeuLoFHJYZt0xeHBu4a9v136AKmzfGNZaIw/gyyIgdjgqndGSSc7Q+5LCU OJ4B+R8vhIUrMkARvy5IAZSHe6W/D1e6E8ZBFzgTmngiB7pVEO3Mdpf7wJKYsqla dU5H/jVukc/Xm1TL+IkcPsCi36AB4RUkYzGQpy4/vUNn2+cN2b6e69RP/1uk5XLL l5+G7f0SgJv24uy+IF/w46DRkl5tKrLv5aSRBkOYRlgeAq/2FnbiuwLijX53RRfY fpVma8H66tX4OSKCYhBmzPF3JFMtMFZvpM82CLhwpWAxgb4XfpPIriMPoExk+oM7 JmwVNbFdOQ0ZhU6tFtM/PS3oSwhh705HlfQOSltcxlq8VKnjiCw= =wKXW -----END PGP SIGNATURE----- --HuQznR6vRqTkkZhP--