From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:1008:1e59::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id 8N+sHmFsT2ZdXwAAA41jLg (envelope-from ) for ; Thu, 23 May 2024 18:18:41 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id 0JDfGWFsT2aPEAAA62LTzQ (envelope-from ) for ; Thu, 23 May 2024 18:18:41 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=wolfsden.cz header.s=mail header.b=ml5TYNqs; dkim=pass header.d=wolfsden.cz header.s=mail header.b=HDYGzEh0; 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"; dmarc=pass (policy=none) header.from=wolfsden.cz ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1716481121; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=MnTC0gOWIptFnT5J1ojosWyNkETijxJGqNhM3y6VFvM=; b=lO4bAxIXeGM6weZnqwKvyzntkZ+tCfmWWB5OsfFoeSx5L3cWX659EnLOwqdDE+3fnt0jPy 6sFVLlL9BG5Q5LUrtOiJ2uNEboE1586jSabruS6DI5TfDvkp5sMOV2BX/sjJZdweeKN/sw Py6B6N5SgxiW2EcAo7jNbUX84ylcqwy8esSIGZiEXC+HYZ8bKvER6g+C0NFuOwywfpB61g pjxVrTtaLQ0+7tmZ+Vh0WnA8H3orqwFAR3SP0pQTmYc5e3cYZyrKE8Ck5S2K/MsJLAR7aE gUnzedsV+2EvESCw/5SgDfN74c5rz2YDnTtgq+tWnQLShTI9VNz03kknB/W0zg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=wolfsden.cz header.s=mail header.b=ml5TYNqs; dkim=pass header.d=wolfsden.cz header.s=mail header.b=HDYGzEh0; 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"; dmarc=pass (policy=none) header.from=wolfsden.cz ARC-Seal: i=1; s=key1; d=yhetil.org; t=1716481121; a=rsa-sha256; cv=none; b=BzT5mnctGvGxHJuz1gePcAFxYpGbvE4UvDmHJekThHCySeQP8rQSKsZ25pzVqbzBLp0cnh vSUozpsOJSJUtvCZesoEiAJsRR83zUk8E+kjfa+LeGiOXwggjLGYxz+AyAEK3ljaOq1uOy IeLtW0gi2NEjCgf81knOk8Pl0TtH8Wt6FbfwTNUNUnqiR0+y8MYz15cfCNGxxVasQzsaPu kN2h3XHd/JyClft5UtBYwkXBrYVBpHk7xeI/mpffFTCuLuhJCD9zgOfFk1eZNidC/eeS/a e5hE/xHUGtwPzUhQUlZEXi2oTYOQrFxcI0VqOvxm1Do1279en7soHg1HrwIahw== 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 08D1E6A9E9 for ; Thu, 23 May 2024 18:18:41 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sAB8u-0000KS-6Q; Thu, 23 May 2024 12:18:12 -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 1sAB8X-0008VA-J7 for guix-devel@gnu.org; Thu, 23 May 2024 12:17:57 -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 1sAB8V-0002wd-Bz for guix-devel@gnu.org; Thu, 23 May 2024 12:17:49 -0400 Received: by wolfsden.cz (Postfix, from userid 104) id 1804F2976DD; Thu, 23 May 2024 16:17:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1716481063; bh=ZoI7ZBrvROKeTRe6K6gKK/Iy58FI3PNJVcA5gnrdhHg=; h=Date:From:To:Subject; b=ml5TYNqsU+tj1fmrovZ7TP30Qf9l0xC4x8B6LEpdger5eNrUPXJaAupnlt+NRe6A7 V+CkV6dj1deBScGAo9upMkVhjfxX9QfP3aFL+N4iPFR+7uHp2g+7LWyOCmNvlR6lxw cTDDH54YCom38qs9pcdCYbu9Fe9gr8/MSklvoCYEwoRFVimLhpcPjV8uWloyQUH5zX eTmV6OSDwlEvSjNggdOagZcjZYjjxwc+/qaPxqG0+PavpMAL5HHHXt2mCw2ZwL5yyS sm6XQauHXnofed7XYyhkQmP6rms1rwyuF+r3CwNZU0+uDo6dLVkHBbPyLV+jQGQH0E agLZb+2nGyalMDu86MgdkZEspwq6TUwcY9pFrQeSI7Uu1mHorDT3GfC1N2E6IPHzlU /kENTkXUyhE1j0gXSR+34zorY+cMJjEAAdPQpJftVduOFowv61WsjhaGeck2Nyz1J2 qSBuOykF0ZpQNJh6Z1jsMCsp78J1hfwqnJPbP1TafkfDo0WTxD4aTScj700OVAKDqm SgYNGg9DkSGTgLrCp8ZBr8NwJJAfuEFCN57B3v+VxZPn6dF297TVDLLPrZOEQnijzc tNUIo9mNGF0qWYdlDOAIjCnMJVFH2BlTEyIHyO3lc/Phv2YvdRPqPMvnD+gDtmccoV Y/eNQZBqUj+gVPPEGxUydXdA= Received: from localhost (unknown [193.32.127.156]) by wolfsden.cz (Postfix) with ESMTPSA id ADADE297B36 for ; Thu, 23 May 2024 16:17:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1716481061; bh=ZoI7ZBrvROKeTRe6K6gKK/Iy58FI3PNJVcA5gnrdhHg=; h=Date:From:To:Subject; b=HDYGzEh0h1wZS+QnzWkJQfzq+sw8sT+xOn7350HSGjDcALNEodG+FgtaJKXUm6yUy o11W+mQfB8iLvJyYbK9wmY0z/scrzXSduIklaGttJoDyKu5N9IbWXEMaZR4C7/28JW tehGbqh4vZMILXs0F9nK4re912Uh6Rx4BfCLNM5yoAHBTQoo7GaKi4uEIOQftqUIc7 6FcrfH9hZZHj4XNc96zUBvy4t6heCevEPjlWg9GboYdV8cqEMJACKsx/B0W6qCQP5D 7nnlKLqFA2IV2NI30dTQ+rSZn2AXTnoQAmHSpUp3+rcwR++NU3bkfP5pN7RrudQarh SVGOYX7TeRQgi9eEkYc1REnEfBMD2eAh2bOzdKXTrMwHWaD1V6V6lrq85AAb8NL3vX 9AtyWQ1mnnnLQVOSfU4lXjm3yqL9mhc3iED46qy16J2aHFbu8FaeVzz/TcremPCKAz neyiayCR1afEnzP/InZ7I2W8+ZndE+zWuzbCLSEdOETLzmF1cjd+Iu4xcAatgR0KfU PUTGLfjYA0dTbQOidL3Jk8PK9ux9yeBcC4/bJ6vCrjHMfEDS+hGkNNSdhLTu4DuF3Z sh6SA1PrOwZphE6XkZ1F/YDXiAK6o2j20X7mPCuRUJo9chSq9d9nn8KHi+AI9TDOeD GcJVtye9AHhn5w5F5m3NkaCQ= Date: Thu, 23 May 2024 18:17:40 +0200 From: Tomas Volf <~@wolfsden.cz> To: guix-devel@gnu.org Subject: How to write a compute-file producing utf8 output? Message-ID: Mail-Followup-To: guix-devel@gnu.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="g5HYX2NPBgCZ+PVu" Content-Disposition: inline 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 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-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -10.50 X-Migadu-Queue-Id: 08D1E6A9E9 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -10.50 X-TUID: on8h+EKzWxk7 --g5HYX2NPBgCZ+PVu Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello Guix, I am currently struggling when trying to create a computed-file producing internationalized content. Simple reproducer is: (use-modules (gnu packages base) (guix gexp)) (computed-file "utf8-display" #~(with-output-to-file #$output (=CE=BB () (display "=E7=8C=AB\n")))) This, when executed and printed, gives following result: /tmp $ guix build -e '(load "/tmp/yy.scm")' /gnu/store/fyr9h82v9hhbjm4f7lqsdnhs4c45sn3y-utf8-display /tmp $ cat /gnu/store/fyr9h82v9hhbjm4f7lqsdnhs4c45sn3y-utf8-display ? As you can see, ? does not equal =E7=8C=AB. I would expect the root cause = to be the same as #66777. Any ideas what can I do about this? Or, even better, why this does not just work out of the box? Thanks for your help, Tomas -- There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors. --g5HYX2NPBgCZ+PVu Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEt4NJs4wUfTYpiGikL7/ufbZ/wakFAmZPbCQACgkQL7/ufbZ/ walkZRAArhVpBU1MmT2rLRL1ivrMw21zFCllyrM3REBN1xxPDSfvRFyOAHUj+vWG XqNQh8zbW0B/hLiggj8aOJKLv8Tu0plFCP/fboN2899k4Uk/VExxq6iuN4DBbcFc Y43HyCYFrOGFaWKZXbRuRON/s1GF/8ani4BM4E9KH8eKIkpilH4kkd2qpkcLe5OE lzc8LuJ5PbJ936PpQM+dOd92P65uGUlwAQm89zq21jogoX0hA93jlyeANlNtjVQJ NP/xBA6UlnofgL1QdDOa6xqX76CgewxuVCROpJbLkqfGLLHD7jl4Xlpieanb7qvS Zs1C3HvDNOAbQuCdQd6CSGEti/X+HqDd9zTDfQ2Fn0je8Owy85ra7kQJI8aJxF4L C+zXn9UaQ5CWV5hHneb7b1ysNW6qjimuJaLSgHz6i1T9koeVNb9QWP2e5ldn4Zdl k9keQcCjNWSp9/HOOI34dDAtQmzxCaTnyrBVI7CI1JFSUC0WMeEt1IdtGE1VVj2/ Kt7j9Vskek+0zPJh0RecEogMWO6K8u3CFA32Cwcc3KOsEVxgKV5K16hrYGNg0rj0 Uku/RPswBgAbkFvyyUvCW7sjNGo/8vVSSdEnErMJN6o6mfRu7w43jaF/NzSymagR 5HQ+uVypuIrEEzPWQYkwjqo3AkARGmSWQcNpsgcUsugBSAa/zR0= =TH3s -----END PGP SIGNATURE----- --g5HYX2NPBgCZ+PVu--