From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id UABjKVxA82Pi6gAAbAwnHQ (envelope-from ) for ; Mon, 20 Feb 2023 10:41:48 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id MBhSKVxA82N5/AAAauVa8A (envelope-from ) for ; Mon, 20 Feb 2023 10:41:48 +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 77C963B843 for ; Mon, 20 Feb 2023 10:41:48 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pU2fP-0002dl-Th; Mon, 20 Feb 2023 04:41:03 -0500 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 1pU2fO-0002ar-IQ for emacs-orgmode@gnu.org; Mon, 20 Feb 2023 04:41:02 -0500 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pU2fM-0002GB-Sl for emacs-orgmode@gnu.org; Mon, 20 Feb 2023 04:41:02 -0500 Received: by mail-wm1-x332.google.com with SMTP id n11-20020a05600c3b8b00b003ddca7a2bcbso396798wms.3 for ; Mon, 20 Feb 2023 01:41:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:date:references:in-reply-to:subject:cc:to:from :message-id:from:to:cc:subject:date:message-id:reply-to; bh=qugI5cqPWO+J8XasmZDXCS1RTOEksEhO1N4Tjo0WSdM=; b=RVL1InQzbq/+dyEAaFwsGzXqerxDmVPfQB/4WMmAsZmdk+9B3eEW8D7WMaVdMzqQl/ VuR9kib5Nd09vRI1PP1fEWkplQ5U1peX40PTjM0tlYHO+w+vVn9SR76Zxj9vyWvjTQrb w2mIbRkAidBLpyzKI7f3kzcxNlciBtjyF7JPqajiw74ICDYsoS8vpkpOoAdHzun8IrmR M3BXRwN5bFl/MaJmrbtz7xVALVx4L31fhQzSih70it5GSvFszRVYTo5vmv2+ixV7T8Xd G+z0irIIreEdYOOos3IpNKmtGcCXfOpzfUhOedOQmdE5joA8A4UFcz3Z1KmSPFU5bCix nQ8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:date:references:in-reply-to:subject:cc:to:from :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=qugI5cqPWO+J8XasmZDXCS1RTOEksEhO1N4Tjo0WSdM=; b=5OwH/I8u42XJ0gg2ll9BgBTNuelZB3AfXHQo/COGnoUEK6K+zG8i+x/dcKiS6Utycy 47jDBnXi8MlTGthxi/3EojYH7+ljbOeGUrP5U23KpsHhxhLRSkx4vMOkqg8XSDUrUYFz FP622Xdaeg7hCLapc7yMhLsnB+m1ilbwMjzGDDKwS8rPRCG14Ow6OuDGJHC72c00RzRU cTXCkTI6xJCq3ghNR9De67ScMqtTZCCQ/ryshVduKJJeMtuZsTKS2nNlW6QEqfJ3vvXn S4sRir4u2EVFjBXe6u8sgc85ot0VG1bV+gv+huGTdq7/K7FaEPaJryYQxTentLLlwRrO as4A== X-Gm-Message-State: AO0yUKVceUp7/kuGVlBq887/0YXoj9CdH4AF3Em9JQZVVRR13MVl/5q3 NfNrCWhUaEv4XKXLJmolPe0= X-Google-Smtp-Source: AK7set+ZvXt2v+4xC5q8Sflmx54QgCx3XE0mb5lQfQ3JRoYZfyVyQssvdE9AS2W8EbIcPHy5yTPcDQ== X-Received: by 2002:a05:600c:a694:b0:3df:fa56:7a33 with SMTP id ip20-20020a05600ca69400b003dffa567a33mr560237wmb.26.1676886058492; Mon, 20 Feb 2023 01:40:58 -0800 (PST) Received: from keynux ([2a01:e0a:505:3460:169:7511:f49a:58eb]) by smtp.gmail.com with ESMTPSA id e1-20020a05600c4e4100b003e1fee8baacsm9742507wmq.25.2023.02.20.01.40.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Feb 2023 01:40:58 -0800 (PST) Message-ID: <63f3402a.050a0220.48628.9248@mx.google.com> Received: by keynux (sSMTP sendmail emulation); Mon, 20 Feb 2023 10:40:56 +0100 From: Bruno Barbier To: Jens Lechtenboerger Cc: Ihor Radchenko , emacs-orgmode@gnu.org Subject: Re: Unicode problem with export of literal contents In-Reply-To: <87cz64u232.fsf@wi.uni-muenster.de> References: <87zg9dx4yl.fsf@wi.uni-muenster.de> <87cz68d06x.fsf@localhost> <87sff4nscd.fsf@wi.uni-muenster.de> <63efb80e.7b0a0220.bb35b.4ae2@mx.google.com> <87cz64u232.fsf@wi.uni-muenster.de> Date: Mon, 20 Feb 2023 10:40:55 +0100 MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::332; envelope-from=brubar.cs@gmail.com; helo=mail-wm1-x332.google.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, FREEMAIL_FROM=0.001, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=RVL1InQz; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1676886108; a=rsa-sha256; cv=none; b=n6unxvTh55XiAGi1BERq/rR+DAxWh8LJ+dyWRjMzZsXwCaTv0C+5ewinIqA11ysxpTpH8V 1QmxHuAMVSqnnxb5vYq7TniOyOkasH4PSkKnypabIDXul4VqyPhdhryiYvvtHyZt/6pwK0 zlApFau9LvQayT34jekb6U/nHxtxQox9uUUuKDhYOLnksRiqHUyIAcYiaFV1kZegUjRWR1 tI6M596qhM/HD8BcNWslEWFFeHl8JpAurCMQO86hP5gN2OPReUSOjwT5A3vl0NY3VI0sF2 o9slypN8T+IOc/0JKC33OW+R3indNG/BxqRA0jCghvd0vLy12mgcYbvB2HTScQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1676886108; 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=qugI5cqPWO+J8XasmZDXCS1RTOEksEhO1N4Tjo0WSdM=; b=JlJ+Gewo4qPxP2HGd0hM3KCOjikmTB95uCDKUChHKMOr8Ara2oHZMDLDK33sgIpuhUHHTC u9ydnsKpvLdjC8l9lWQtUXBz/ELK/7GeLN5hFRlIC/qNdU0PUvwG1HsqH9iO7KM8qHjPEV laQ7NT1QtaiEtVRxs6t7EydVpMVaOsAzQcNOOSXbB1p3gXmjGT0HmEd/DB8ZBYHZkk/ACN Zv68nDxNjbgsxiYybb0Dz1/wNKVa2+0ypqTfzx6+Er/kE0Ycv1YUWiVgousUuI/nl4RAMp GKZBD/EJfMKYHquItXduPRGfadRwYoU1DgGJRasNS+Tz3xRzWPMjqsWEqG8hwQ== X-Migadu-Spam-Score: -6.36 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=RVL1InQz; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com X-Spam-Score: -6.36 X-Migadu-Queue-Id: 77C963B843 X-Migadu-Scanner: scn1.migadu.com X-TUID: HewGT/PBCcEz Jens Lechtenboerger writes: > On 2023-02-17, Bruno Barbier wrote: > >> Here is a way to reproduce that doesn't use org, in case it might help >> to manully fix your encoding issue: >> >> (with-temp-buffer >> (insert "Lechtenb\303\266rger") >> (let ((buffer-file-name (make-temp-file "mailtest"))) >> (save-buffer))) >> >> Does it work with your old config (with your old org) ? > > This also asks for an encoding. If you're always using utf-8, here is a way to force it so that secure-hash can compute the hash. This should work: (with-temp-buffer (let ((coding-system-for-write 'utf-8)) (insert "Lechtenb\303\266rger") (secure-hash 'md5 (current-buffer)))) Without setting coding-system-for-write to utf-8, it asks for an encoding: (with-temp-buffer (insert "Lechtenb\303\266rger") (secure-hash 'md5 (current-buffer))) I'm still no getting your use case, but, let's hope that this naive hack is enough for you :-) Bruno > Best wishes > Jens