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 GAZbNlOgT2bMMwEAA41jLg (envelope-from ) for ; Thu, 23 May 2024 22:00:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id eK77MlOgT2YF0QAA62LTzQ (envelope-from ) for ; Thu, 23 May 2024 22:00:19 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lease-up.com header.s=2017 header.b=OrklH86m; 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=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1716494419; h=from:from:sender:sender:reply-to: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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=C4rzXSxMS8RkwSMTT24ByOohglU6oRlkS/eN/dIVZA0=; b=e1Yap7RFM1ECXbQ0Cg7WqMBE2ljhDWyIXdGwC0E5caeS6Pd/jMiv5617l2J4+tZmVSOC7a ZSZpsbBI1Pr9ZzaU6QMEqcajkArtfx3i7Pe7V4ldqyrmg1nfFkqoTFL09GIjxs57os74Px bW0XRpqe08TUXNytvUJkjp46Kfos8Xbwm8L9Wp4QDZiX7LNo9ERYblNfZY+1Ff6nHUDuw+ lf7bqTSZFKnKm+R+h16sIDjcB60rGIIcs3zhnDwjTGjCbVTmg8YQoANkiXqPx89YIQ0sqC y5fltvR0TiOpltHrVR2esIrfd64OYovDryBCHxTZJAbbWd27HB/1uyNHHYTq3w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lease-up.com header.s=2017 header.b=OrklH86m; 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=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1716494419; a=rsa-sha256; cv=none; b=S/MpCrP+XpIOWaIOck17JjGF5nwba8a582OV3pRnSGVIalyVIi/wxmTLzEWATVdfjInD+J RlljW516/iyk/jxF1MS6j9LI1Aw8GvKLnUZuWHfpqfxZlx/WrIYFszm8n9eSJLaLfzLgbS +BGd0K0Rmm6MbIsqHCdzSsSSPt1z1jhfiLDXSujcyYBK1rUO/o9288ZQ22ftmor8fLi5qh rnXJCkazQrNEmEEWQcTdzi3WLzwoTdzrfaT/j7yjwWdU5uxt1fK8bboD8lbJ89xWpXRr9V uAXkZZKyIXYVNk5DWIbSg9aGCb6W7rCl3VobvCv69KBHDuVn3o//NuUvKeFPWg== 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 2B08110B26 for ; Thu, 23 May 2024 22:00:19 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sAEaz-0000hU-H4; Thu, 23 May 2024 15:59:25 -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 ) id 1sAEay-0000gu-Bk for guix-devel@gnu.org; Thu, 23 May 2024 15:59:24 -0400 Received: from sail-ipv4.us-core.com ([208.82.101.137]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1sAEaw-0006OI-3J for guix-devel@gnu.org; Thu, 23 May 2024 15:59:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=2017; bh=A3A+VeunUibYp+1 O33yJNic3h372OXFN9n2jDWT+rE4=; h=date:references:in-reply-to:subject: cc:to:from; d=lease-up.com; b=OrklH86mq+Kg/ikMuytoN+kY8/qFzr2DTgcetqSF se5Wytk6nl9gkZc0/63loBuKgowOsMiE0PKtZG4UNN4JqV8LBBiBqhtS6NGXw4QUh3XRPm 0R1+0zr2AKQo0RWCdtKHMO1CUkeuhVXH5c8i1DbjvYaZfdmJeUKVg/NdbtlSs= Received: by sail-ipv4.us-core.com (OpenSMTPD) with ESMTPSA id 43b6ad4b (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO); Thu, 23 May 2024 19:59:19 +0000 (UTC) To: Tomas Volf <~@wolfsden.cz>, guix-devel@gnu.org Cc: Subject: Re: How to write a compute-file producing utf8 output? In-Reply-To: References: Date: Thu, 23 May 2024 12:59:18 -0700 Message-ID: <87jzjks3jd.fsf@lease-up.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=208.82.101.137; envelope-from=felix.lechner@lease-up.com; helo=sail-ipv4.us-core.com 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_NONE=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: , Reply-to: Felix Lechner From: Felix Lechner via "Development of GNU Guix and the GNU System distribution." 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: -5.86 X-Spam-Score: -5.86 X-Migadu-Queue-Id: 2B08110B26 X-Migadu-Scanner: mx13.migadu.com X-TUID: UmXnhHKcoWBT Hi Tomas, On Thu, May 23 2024, Tomas Volf wrote: > As you can see, ? does not equal =E7=8C=AB. Maybe it helps you that this file works: (use-modules (gnu packages base) (guix gexp)) =20=20=20=20 (computed-file "utf8-display" #~(with-output-to-file #$output (=CE=BB () (use-modules (ice-9 binary-ports) (rnrs bytevectors)) (put-bytevector (current-output-port) (string->utf8 "=E7=8C=AB\n"))))) Diagnosing encoding issues can be tricky. Therefore: $ guix shell xxd -- xxd /gnu/store/qqljfpzks62kph7qqdv26aj76r2q14nz-utf= 8-display 00000000: e78c ab0a The present issue reminds me---and perhaps you---of https://issues.guix.gnu.org/69381. Kind regards Felix