From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.3 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FORGED_GMAIL_RCVD,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,RCVD_DOTEDU_SUSP, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 Received: from mx1.math.uh.edu (mx1.math.uh.edu [129.7.128.32]) by inbox.vuxu.org (Postfix) with ESMTP id 1E80729D95 for ; Fri, 16 Feb 2024 16:31:06 +0100 (CET) Received: from lists1.math.uh.edu ([129.7.128.208]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.97.1) (envelope-from ) id 1rb0B6-0000000E3h0-0g4o for ml@inbox.vuxu.org; Fri, 16 Feb 2024 09:31:04 -0600 Received: from lists1.math.uh.edu ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.97.1) (envelope-from ) id 1rb0B5-00000000ac8-3uO4 for ml@inbox.vuxu.org; Fri, 16 Feb 2024 09:31:03 -0600 Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtp (Exim 4.97.1) (envelope-from ) id 1razMx-00000000aWy-2v28 for ding@lists.math.uh.edu; Fri, 16 Feb 2024 08:39:15 -0600 Received: from quimby.gnus.org ([95.216.78.240]) by mx2.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.97.1) (envelope-from ) id 1razMs-0000000B6Wl-1PNi for ding@lists.math.uh.edu; Fri, 16 Feb 2024 08:39:15 -0600 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:Mime-Version:Reply-To: Message-ID:Date:Subject:From:To:Sender:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=hC3FhWSOtyV3ufQeUxyrR6K3KoswqldgXf+CZpc8ZNI=; b=IGfihhs2hJ2q8A0fBu9n5Lgw+g pJvpdA8eIW5isB59mJQhF0Hss6CbqNKLnfE+gvmudV/vo6s/Xerdo4vhnCkj5+sEsD84WWDRQW65Q MMBuL9dtf48y4TQ5NpyBx/Mi8bP2sSR4s8FstTCoe/z71rczTP4B5iZCylOsjjAQAcQo=; Received: from ciao.gmane.io ([116.202.254.214]) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1razMl-0005bw-MP for ding@gnus.org; Fri, 16 Feb 2024 15:39:06 +0100 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1razMj-0003vi-4B for ding@gnus.org; Fri, 16 Feb 2024 15:39:01 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: ding@gnus.org From: Pascal Quesseveur Subject: Problem opening a MIME attachment Date: Fri, 16 Feb 2024 15:38:55 +0100 Organization: Les Enchantements de Miraldra Message-ID: <86frxsv5hc.fsf@gmail.com> Reply-To: pquessev@gmail.com Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:RPyPm2ryk+zSbop/NIeVqaXaEow= X-Attribution: PQsr List-ID: Precedence: bulk Hello, I encounter a problem opening a MIME attachment with an external viewer with emacs 29.1 (Gnus v5.13) on Windows (I had the same problem with version 28.1). Problem occurs when the filename has characters other than 7-bit ASCII. I have not found any trace of this problem, which surprises me. Content-Type is defined as follows: Content-Type: message/external-body; name="c:/somedirs/XXX =?iso-8859-1?Q?R=E9"; access-type=LOCAL-FILE The viewer is launched in mm-display-external by start-process with following args: - path to cmdproxy.exe - -c - path to the viewer exe and the attachment filename encoded in iso-8859-1 The viewer fails to open the file. The parameter received by the viewer is not encoded in iso-8859-1: 0x160 for è, 0x201A for é, ... It appears the problem disappear when I set coding-system-for-write to buffer-file-coding-system before calling start-process but I am not sure this is the correct fix. -- Pascal Quesseveur pquessev@gmail.com