From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 21 09:23:01 2022 Received: (at submit) by debbugs.gnu.org; 21 Mar 2022 13:23:01 +0000 Received: from localhost ([127.0.0.1]:36155 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nWHzx-0002kd-0r for submit@debbugs.gnu.org; Mon, 21 Mar 2022 09:23:01 -0400 Received: from lists.gnu.org ([209.51.188.17]:33622) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nWHzv-0002kW-UO for submit@debbugs.gnu.org; Mon, 21 Mar 2022 09:23:00 -0400 Received: from eggs.gnu.org ([209.51.188.92]:35908) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nWHzv-0007Eu-J2 for bug-gnu-emacs@gnu.org; Mon, 21 Mar 2022 09:22:59 -0400 Received: from mail-sgaapc01olkn2021.outbound.protection.outlook.com ([40.92.53.21]:48929 helo=APC01-SG2-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nWHzt-0004UH-Jd for bug-gnu-emacs@gnu.org; Mon, 21 Mar 2022 09:22:59 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kaV4JdlAoz/UdeZoHcb5NX15dKylXljxgaY0Ql4QajkrtBq8ZD34r/QpOM3Q5UigalUmnLQOABKq3CwdSHATIYMzu++W0Ov9wwF49sgseEUD1fcVKMxlgxWzf0lQAH0eNMQQ75a3QyokDJP6vunwCnBAXmn5puq+cf9N8hFZShzsHvthJ1lgKKaa+KdNIE0vL7hEgw2FXHfVswgInNpt1GcH+MnLYVa971sAJ1ENNYvFGjNvSvwkEMIcWBeOK9Obzh0TW0O/jGeHKFRN1aQPYZJF9Tl0hKzKEJftrClpOvSk9kabreM39hU9jlIO8R/yEH6AaxvjWdqAB2XAF36iPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=XuVrownR3GsDTCOzmX60XnNZcvgG2c5Ztly9AzDao08=; b=mGA/rZYqmSqGOROYlHvfGxaMNDyjZqly4rb7rrmul/iGZ8BA7eUdlsS+FEkG4NXSO1d9ND+3M5b+TRACIdIkZ8/p6M/c/+cgqi9yI1ScwlLcPjHDFaMABReBd6m/rXp8d8YU0jD/oGS6HP8XQOkFvooP+A9de1JEZimV7xF8Nxk5bTVOTfsOdT6DUgSUvLxDCMROYlsY+rAzwVQEnYh72UAZTJDfwqUUiN3bxk8FjpPVWxfGvfevrqyIEsIk35LVQGRIB4R1smqKCA3KxjI+6iyROBM4yritwoU2w+JdCcrUyDlVxYO8pA+eTqGJs0Uq8ur8qqHoAqzT2bqeCDJZLg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XuVrownR3GsDTCOzmX60XnNZcvgG2c5Ztly9AzDao08=; b=FQf3LVOB8cRvGOs/KjhxCCeQvTqQ5gjfYb1qSuPkN43m8WdKVrJV9IOTcGbqCbavMMNDgkSSo1ZM5A9F5Zl+c/RrJ+00CLsVpTdmMx+by3RWnlmFDllDGo3Dul+jluvxNrESjPUeJR1JX4cPzhGClOYccu68v30pSrl+Aj+hNYiRUsuDdvr0XHp6y/+lwFy9Tt6drh/ebk6R7z/GcHtZu5NsiebEKolXEbAb8Hn3G2KoMSEM2o8eqdCheApyvYKIcizqLYZfkv7bdp+Gc6QoEiA4ddbLZH6pa8X8yghoIr4MJ4ZNcMMeHHcWw1YqfaC8rUK5verM37qzE37nYrTdWg== Received: from TYZPR01MB3920.apcprd01.prod.exchangelabs.com (2603:1096:400:30::11) by SG2PR01MB4362.apcprd01.prod.exchangelabs.com (2603:1096:4:1b5::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5081.22; Mon, 21 Mar 2022 13:02:16 +0000 Received: from TYZPR01MB3920.apcprd01.prod.exchangelabs.com ([fe80::8158:3911:2dd5:1051]) by TYZPR01MB3920.apcprd01.prod.exchangelabs.com ([fe80::8158:3911:2dd5:1051%4]) with mapi id 15.20.5081.022; Mon, 21 Mar 2022 13:02:15 +0000 From: awrhygty@outlook.com To: bug-gnu-emacs@gnu.org Subject: 27.2; image-convert :data broken Date: Mon, 21 Mar 2022 22:02:12 +0900 Message-ID: Content-Type: text/plain X-TMN: [C4nWnl3/A+dXacU7vt8Ed3YaPIG4ZCxb] X-ClientProxiedBy: OS0PR01CA0158.jpnprd01.prod.outlook.com (2603:1096:604:26::9) To TYZPR01MB3920.apcprd01.prod.exchangelabs.com (2603:1096:400:30::11) X-Microsoft-Original-Message-ID: <86fsnb1msr.fsf@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4b0ea196-b217-43ba-3021-08da0b3b05b0 X-MS-TrafficTypeDiagnostic: SG2PR01MB4362:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: muzrOfcDKo3OpZjoEU+JX3f4tjZPWRTExxSyX/Kctycve3C+G7F5y/p05FqsPTpcR+9+QLBQikfZl8qGB3GDJTz9T6aTJL5XUAvn5k4OLKOOqA7MSyETmw9x1yoUiNtuO3wj3Bg/l++x4yZW+m7FQncRYBVkY5IcF3UCS91Ho8Fp1vHM3/5uK5JTxtbzKWXVjmOqXjQLn5XmoNirDXxC/cV5gHFO1I5CF9AOcgJkoLjMTbG9ZZjK/QTiRM3oA0B9b/Hq12BrDzutNe+AYaKyIxSgAMFa+g2J9e/Np5HKnEkn7H/4+bXUt6Uo+z9/6NPBng/AlSzzOobJKT2cA0eJ3KiOkvsV0U2YhC0H30bdjnKcE5yomgBpMlDlJpcFqcOa+GFFXdDOVI7wDk8gNemsmK6s5NdL4ONE7CydOACXyL4H1pkRmdFh1pPIBMIXhT2FaDH9+zfcd5Kb6oWX4hUSoXhRQFWLf3YbyhWJIp/oGspcTxHi41J+56rLPryoxdn3PqCWHIPslOpS/Icim1vu6c92iWfJt3uLe81Pnp3+D4q9f5PCUbA/eaB8hZITejCn1q4tkHv4H+b1uMKmQqOIKw== X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?9PUlKuwZyxnFekTDAA3Ow0uhKxWyDyY9iwBzEMm6ljhQmnicDDgN7q7rY8SZ?= =?us-ascii?Q?ztjQAryBXRXXAEimFhECw9xDsabWl/Oy2cqM852MwR7cxM4N0pn2eiyBD2Sm?= =?us-ascii?Q?WEUz2FXeca7MUvu0ssSwPfLuUqqOe04FymzLCl5Gczh6VmXQgIBMcBb+wjsR?= =?us-ascii?Q?XmWJVdH3qzM7MLmxaWCcHEa/PBSyYxTTCHLhiq1eeoIvLPCYUGg76uVRRPCF?= =?us-ascii?Q?g1FRgMBmQGCUMoP7fRyNFU8ugNkiwGFVR62pbVqelq0Xcv0EiEaSnuOV7OSB?= =?us-ascii?Q?+xo1XgK1x5Q/bNRdiBRyYbh8Uk16RsdUw2n7BYHsb+7pCN2XjC2gByNHbgIg?= =?us-ascii?Q?IOZmmSMdbuXPQ+b/f8T8N3PY66Big67aFTjNBO4zwKTWChCRus8TxzhKtBLU?= =?us-ascii?Q?1wqOTza1WkiXWBaOJb3Ueh7DGzXVhuVPNbt1EADezFU/yrERDHqXlHUT7WlK?= =?us-ascii?Q?PuT589PjrU46s3j63t3/tfA7AilSZC1oj4A9piy5CoAmOPPyyYIonxCh4TVm?= =?us-ascii?Q?g6BhcRbHcV1Ek+8lDFGmcsgQ6Yi3vMPmwpq0AIsWWagbMwqWPWpFtsnauofP?= =?us-ascii?Q?B0gq0EKp1tZbNPWSkF+GDw+cfDumOYuAvfj/To2K8R28OxB3CGNegic/jGtP?= =?us-ascii?Q?CEy5IDy2oD/WScmTMIkqibL2k1ReyunvZMCgdYt3JYd8TtCVuhIXCKtfCdZS?= =?us-ascii?Q?XG62bb7UnbsaP0qdRGJWh+1vsT101n5XWQ1Tydl6HHzlbfMSh1c7HcZxq27t?= =?us-ascii?Q?2NsI815DeIaQtqnq4HfK536x0CzHcbgDEzJo3fdDIY8PolpCq/6P0GyNGtgC?= =?us-ascii?Q?k52fqB45VmW8krPo4PCkcthexdavvdyC6uWldTEdqfzG0njSspJa4WavHq5z?= =?us-ascii?Q?Lz8ybR4CoWvzMMiwCFkSYU6eNF9Zme8OoJ4Br6fZBMCSrqH1q+HKcJJeZYOD?= =?us-ascii?Q?sAAUT6EyHsmPgF3z01Xn2YND6mxViaEJ0Yd/+dZkIFrzzglGWxmOdQ/VeBAS?= =?us-ascii?Q?h70h5afX2LODBVmrZlyIg0+2vMGopTJ1t+mKGeRIkUOMOXPInDl6uTw2yRLe?= =?us-ascii?Q?F4SgNhHFUwE5S8Do09FCBlvTb/2JcppJLkMT+6xEbtx9xlQcoBCNzFvibcJH?= =?us-ascii?Q?/2FVfBQmDIqdVciLzvPnlwCQnJCc11efog=3D=3D?= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4b0ea196-b217-43ba-3021-08da0b3b05b0 X-MS-Exchange-CrossTenant-AuthSource: TYZPR01MB3920.apcprd01.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Mar 2022 13:02:15.9187 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2PR01MB4362 Received-SPF: pass client-ip=40.92.53.21; envelope-from=awrhygty@outlook.com; helo=APC01-SG2-obe.outbound.protection.outlook.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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, 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-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) I tried to view non-native image files. I need not only to set variables, but also to modify a function. The externally converted data is broken by automatic code-conversion. (setq image-use-external-converter t image-converter--converters '((imagemagick :command ("magick" "convert") :probe ("-list" "format")))) (advice-add #'image-converter--convert :before (lambda (&rest r) (setq-local coding-system-for-read 'binary))) In GNU Emacs 27.2 (build 1, x86_64-w64-mingw32) of 2021-03-26 built on CIRROCUMULUS Repository revision: deef5efafb70f4b171265b896505b92b6eef24e6 Repository branch: HEAD Windowing system distributor 'Microsoft Corp.', version 10.0.19044 System Description: Microsoft Windows 10 Pro (v10.0.2009.19044.1586) Recent messages: Configured using: 'configure --without-dbus --host=x86_64-w64-mingw32 --without-compress-install 'CFLAGS=-O2 -static'' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY W32NOTIFY ACL GNUTLS LIBXML2 HARFBUZZ ZLIB TOOLKIT_SCROLL_BARS MODULES THREADS JSON PDUMPER LCMS2 GMP Important settings: value of $LANG: JPN locale-coding-system: cp932 Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs text-property-search time-date subr-x seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils term/bobcat japan-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads w32notify w32 lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 48618 9086) (symbols 48 6089 1) (strings 32 16924 1180) (string-bytes 1 521726) (vectors 16 9935) (vector-slots 8 201874 8320) (floats 8 21 347) (intervals 56 210 0) (buffers 1000 11)) From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 21 12:35:19 2022 Received: (at 54493) by debbugs.gnu.org; 21 Mar 2022 16:35:19 +0000 Received: from localhost ([127.0.0.1]:37953 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nWL02-0006L1-Rs for submit@debbugs.gnu.org; Mon, 21 Mar 2022 12:35:19 -0400 Received: from quimby.gnus.org ([95.216.78.240]:52024) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nWL00-0006Kf-Oh for 54493@debbugs.gnu.org; Mon, 21 Mar 2022 12:35:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=9invlL8g42OfoGNPwdDoK9rmgA5crjJjV1Lt5V4Ebz8=; b=k9TnT1rQB+2+nKwkzPPTGOVgM2 81S6u5y1Lz0I2mPFlwBzWyFaAhUXOymVQT9cA5L92LblA0Ag1Rz6fnXZ1iG88QhUpDR5YsF/3hAwq 3sY5DQJF62DgW39UnNzaGpopm0j9kD1B/aRVIUuQwlrtlVZoD8dJVTcWQT9m9DAIYvr8=; Received: from 109.179.236.69.tmi.telenormobil.no ([109.179.236.69] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nWKzs-000172-29; Mon, 21 Mar 2022 17:35:10 +0100 From: Lars Ingebrigtsen To: awrhygty@outlook.com Subject: Re: bug#54493: 27.2; image-convert :data broken References: Date: Mon, 21 Mar 2022 17:35:07 +0100 In-Reply-To: (awrhygty@outlook.com's message of "Mon, 21 Mar 2022 22:02:12 +0900") Message-ID: <8735jbtgas.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: awrhygty@outlook.com writes: > I tried to view non-native image files. > I need not only to set variables, but also to modify a function. > The externally converted data is broken by automatic code-conversion. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP 0.0 TVD_RCVD_IP Message was received from an IP address -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 54493 Cc: 54493@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) awrhygty@outlook.com writes: > I tried to view non-native image files. > I need not only to set variables, but also to modify a function. > The externally converted data is broken by automatic code-conversion. I can reproduce this in Emacs 27.2, but not on the trunk, so it looks like this has been fixed. Here's my test case: (insert-image (create-image (with-temp-buffer (set-buffer-multibyte nil) (insert-file-contents "/home/larsi/src/WebKit/LayoutTests/fast/css/resources/bikes.bmp") (buffer-string)) nil t :format 'image/bmp)) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 21 12:35:24 2022 Received: (at control) by debbugs.gnu.org; 21 Mar 2022 16:35:24 +0000 Received: from localhost ([127.0.0.1]:37956 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nWL08-0006LH-26 for submit@debbugs.gnu.org; Mon, 21 Mar 2022 12:35:24 -0400 Received: from quimby.gnus.org ([95.216.78.240]:52038) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nWL06-0006Kt-90 for control@debbugs.gnu.org; Mon, 21 Mar 2022 12:35:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding: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=NHooUOF7Brw44UoCGwSfuJGpUdOmMfL0RT+XFCdw7hI=; b=OPp7b8lWyTeX2jKZOm4/ezWKjt IDueVM8d5Tw+g3uU/HsvvZStRC6QrKqPW8Wu+QCjbjbr1zd+GwyfQAOrgUf40Z+oN4Lj5y/bJgwpf b31KxiHO+ifchnL9yUtLfU98fzLx/u+atGeMfGkSPMFxIsjmDEJIxMwkFrYfmfCGOoMw=; Received: from 109.179.236.69.tmi.telenormobil.no ([109.179.236.69] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nWKzz-00017B-11 for control@debbugs.gnu.org; Mon, 21 Mar 2022 17:35:16 +0100 Date: Mon, 21 Mar 2022 17:35:14 +0100 Message-Id: <871qyvtgal.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #54493 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 54493 29.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP 0.0 TVD_RCVD_IP Message was received from an IP address -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 54493 29.1 quit From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 21 13:00:42 2022 Received: (at 54493) by debbugs.gnu.org; 21 Mar 2022 17:00:42 +0000 Received: from localhost ([127.0.0.1]:38003 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nWLOb-0001ZF-FI for submit@debbugs.gnu.org; Mon, 21 Mar 2022 13:00:41 -0400 Received: from eggs.gnu.org ([209.51.188.92]:35532) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nWLOZ-0001Rs-Id for 54493@debbugs.gnu.org; Mon, 21 Mar 2022 13:00:39 -0400 Received: from [2001:470:142:3::e] (port=46158 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nWLOT-0003sZ-E7; Mon, 21 Mar 2022 13:00:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=CZl21nWD2M/u8NhLICsxenr4l7YvYKXkewqn0uhi2IM=; b=DQtlVQzDKfDJ 26Bt8ABuwKmAY6HRScpN7ipo6YR38k4oCrNYcuBPE8Y6GOMBEmh+fnUMBS3Kej+2o4qaSmqRIznUD tUZ2P/nFwv+XDFTb+x9T9l1Q4FCEajtkxZF2Po4wluRVCnsawTjhvNrRVkuSbdBnPa3xXa9hsaBSG JWLJOdkFtbt2soxUQzBXm4YC333ApmwWN5DTcOrgZ+gnagVCmPdfdvq0dyHQs0vu7gfX/Dr4lQXVj BD84P7KbkBJIoqCJ2zwhEuBMi1o6WIkPMSBnI1yj1cTUOdBOBaDaGpUt/q0ZpvXz7Fdav3BVykGwY yyHL9AsNTFSp5s85tP9MFw==; Received: from [87.69.77.57] (port=3178 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nWLNz-0005aG-Qi; Mon, 21 Mar 2022 13:00:25 -0400 Date: Mon, 21 Mar 2022 18:59:48 +0200 Message-Id: <83h77rfdh7.fsf@gnu.org> From: Eli Zaretskii To: Lars Ingebrigtsen In-Reply-To: <8735jbtgas.fsf@gnus.org> (message from Lars Ingebrigtsen on Mon, 21 Mar 2022 17:35:07 +0100) Subject: Re: bug#54493: 27.2; image-convert :data broken References: <8735jbtgas.fsf@gnus.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 54493 Cc: 54493@debbugs.gnu.org, awrhygty@outlook.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Lars Ingebrigtsen > Date: Mon, 21 Mar 2022 17:35:07 +0100 > Cc: 54493@debbugs.gnu.org > > awrhygty@outlook.com writes: > > > I tried to view non-native image files. > > I need not only to set variables, but also to modify a function. > > The externally converted data is broken by automatic code-conversion. > > I can reproduce this in Emacs 27.2, but not on the trunk, so it looks > like this has been fixed. Here's my test case: > > (insert-image > (create-image > (with-temp-buffer > (set-buffer-multibyte nil) > (insert-file-contents "/home/larsi/src/WebKit/LayoutTests/fast/css/resources/bikes.bmp") > (buffer-string)) > nil t :format 'image/bmp)) What if you evaluate this first: (set-default-coding-systems 'utf-8-dos) Does it still work for you? The OP is on MS-Windows, where the default decodes the CRFL EOLs, something we shouldn't do with image data. In general, I believe explicitly binding coding-system-for-read, as the OP suggested, is better than relying on some code somewhere that just happens to let this work (on some systems). From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 21 13:14:34 2022 Received: (at 54493) by debbugs.gnu.org; 21 Mar 2022 17:14:34 +0000 Received: from localhost ([127.0.0.1]:38073 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nWLc2-0003Wm-1z for submit@debbugs.gnu.org; Mon, 21 Mar 2022 13:14:34 -0400 Received: from quimby.gnus.org ([95.216.78.240]:52640) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nWLc0-0003WY-0w for 54493@debbugs.gnu.org; Mon, 21 Mar 2022 13:14:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=CVYuW1dcUXB48Izmmyd0hp/Kk2idTETIBRZ0qWROvAQ=; b=IO6BuFwqu9Lb6RnoI7n5u9ZTW/ Z6mHVe4d3M2BQjn1uhDpQF6Qy7WlC/A2lhjjqB7OYWCd+22WLs3YOnirP9bc00BmEDsJwe6SzDmJE rI950K5TLMFlQ0AQcQ1uEahKlECcGoqU8m2sfeF5ffHULqS+YrraBo8uxbRK5ap0MUuE=; Received: from 109.179.236.69.tmi.telenormobil.no ([109.179.236.69] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nWLbs-0001a5-Bz; Mon, 21 Mar 2022 18:14:26 +0100 From: Lars Ingebrigtsen To: Eli Zaretskii Subject: Re: bug#54493: 27.2; image-convert :data broken References: <8735jbtgas.fsf@gnus.org> <83h77rfdh7.fsf@gnu.org> Date: Mon, 21 Mar 2022 18:14:23 +0100 In-Reply-To: <83h77rfdh7.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 21 Mar 2022 18:59:48 +0200") Message-ID: <87tubrqlcg.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eli Zaretskii writes: > What if you evaluate this first: > > (set-default-coding-systems 'utf-8-dos) > > Does it still work for you? Yes. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP 0.0 TVD_RCVD_IP Message was received from an IP address -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 54493 Cc: 54493@debbugs.gnu.org, awrhygty@outlook.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Eli Zaretskii writes: > What if you evaluate this first: > > (set-default-coding-systems 'utf-8-dos) > > Does it still work for you? Yes. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Mon Aug 18 11:30:57 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 19 Apr 2022 11:24:09 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator