From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#62790: 29.0.60; WEBP header regexp in image-type-header-regexps fails files containing newlines Date: Wed, 12 Apr 2023 20:05:54 +0300 Message-ID: <83y1mx58ul.fsf@gnu.org> References: <87o7ntdxg4.fsf@gmail.com> <835ya16qry.fsf@gnu.org> <87jzyhdovm.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29258"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 62790-done@debbugs.gnu.org To: Visuwesh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Apr 12 19:06:38 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pmdvY-0007Lp-Vw for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 12 Apr 2023 19:06:37 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pmdv9-0007ND-LP; Wed, 12 Apr 2023 13:06:13 -0400 Original-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 1pmdv4-0007Mj-V2 for bug-gnu-emacs@gnu.org; Wed, 12 Apr 2023 13:06:07 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pmdv1-0005Il-AX for bug-gnu-emacs@gnu.org; Wed, 12 Apr 2023 13:06:06 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pmdv0-0002B8-Lf for bug-gnu-emacs@gnu.org; Wed, 12 Apr 2023 13:06:02 -0400 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Wed, 12 Apr 2023 17:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 62790 X-GNU-PR-Package: emacs Mail-Followup-To: 62790@debbugs.gnu.org, eliz@gnu.org, visuweshm@gmail.com Original-Received: via spool by 62790-done@debbugs.gnu.org id=D62790.16813191228316 (code D ref 62790); Wed, 12 Apr 2023 17:06:02 +0000 Original-Received: (at 62790-done) by debbugs.gnu.org; 12 Apr 2023 17:05:22 +0000 Original-Received: from localhost ([127.0.0.1]:41664 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pmduL-0002A4-Hn for submit@debbugs.gnu.org; Wed, 12 Apr 2023 13:05:21 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:57832) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pmduH-00029l-4B for 62790-done@debbugs.gnu.org; Wed, 12 Apr 2023 13:05:20 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pmduA-00056s-O3; Wed, 12 Apr 2023 13:05:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=E44W3RsQKbLz+YID96sp61csmb5NJw6ZJZ1bwimRucA=; b=HmI1GFhU64/f/1pmQlrT wCEHBxlewyyOmvO1W/yNGXRDtXP1Y1fFkH6R/e+MCBw1OXuBHFBYuVxCfhFsFPBOpodDMNU4yTiz4 +ozkXnTalLaFMGO8aPPCfQOFRkCuhqMgEQXb7Us38KfdOCQbDW/cFxBfzQRwpOGZCwdOvfJVpZWka CbJOeeKOZBLVC0kUGJ/vTHrk4vUOT4jCFmIqj+BQVjRcqTGox8hD353/bOukmXiIeu63Acakq7cIR G6jrpR54sKnmDsoveg750ezHeNLlonQNx1YGfZB9RYWMoR/ucswbf5GJdQqk3SW0b0qUMI+qEHevI 6y5ROwjqNRXrdA==; Original-Received: from [87.69.77.57] (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 1pmdu9-0005gZ-2K; Wed, 12 Apr 2023 13:05:09 -0400 In-Reply-To: <87jzyhdovm.fsf@gmail.com> (message from Visuwesh on Wed, 12 Apr 2023 22:22:29 +0530) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:259787 Archived-At: > From: Visuwesh > Cc: 62790@debbugs.gnu.org > Date: Wed, 12 Apr 2023 22:22:29 +0530 > > [புதன் ஏப்ரல் 12, 2023] Eli Zaretskii wrote: > > > Thanks, but please show a recipe, starting from "emacs -Q", to > > reproduce the problem with this image. I just visited it with > > "C-x C-f" and didn't see any problems. > > Please evaluate > > (create-image > (with-temp-buffer > (insert-file-contents-literally "/path/to/attached/image") > (buffer-string)) > nil t) > > in emacs -Q and observe the return value. It will return nil even > though it is a valid webp file. The reason C-x C-f succeeds is because > the file has the "webp" extension and thusly `image-supported-p' call in > `image-type' returns non-nil. Thanks, installed on the emacs-29 branch, and closing the bug.