From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Vincent =?UTF-8?Q?Bela=C3=AFche?= Newsgroups: gmane.emacs.bugs Subject: bug#27391: 25.2.50; utf-8 coding cookie is not applied on some specific markdown file Date: Fri, 16 Jun 2017 21:37:37 +0200 Message-ID: <238fb785-932e-f0a5-e2dd-c9e199716efb@gmail.com> References: <84r2ykc9fa.fsf@gmail.com> <83y3srzske.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1497641892 27120 195.159.176.226 (16 Jun 2017 19:38:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 16 Jun 2017 19:38:12 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 Cc: 27391@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 16 21:38:08 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dLx4J-0006kP-Qe for geb-bug-gnu-emacs@m.gmane.org; Fri, 16 Jun 2017 21:38:07 +0200 Original-Received: from localhost ([::1]:60553 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dLx4O-0005DA-Ux for geb-bug-gnu-emacs@m.gmane.org; Fri, 16 Jun 2017 15:38:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56829) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dLx4I-00053Z-LJ for bug-gnu-emacs@gnu.org; Fri, 16 Jun 2017 15:38:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dLx4E-0006fS-No for bug-gnu-emacs@gnu.org; Fri, 16 Jun 2017 15:38:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49037) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dLx4E-0006f7-Jv for bug-gnu-emacs@gnu.org; Fri, 16 Jun 2017 15:38:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dLx4E-0003K8-AM for bug-gnu-emacs@gnu.org; Fri, 16 Jun 2017 15:38:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Vincent =?UTF-8?Q?Bela=C3=AFche?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Jun 2017 19:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27391 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 27391-submit@debbugs.gnu.org id=B27391.149764186812757 (code B ref 27391); Fri, 16 Jun 2017 19:38:02 +0000 Original-Received: (at 27391) by debbugs.gnu.org; 16 Jun 2017 19:37:48 +0000 Original-Received: from localhost ([127.0.0.1]:51714 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dLx3z-0003Jg-M1 for submit@debbugs.gnu.org; Fri, 16 Jun 2017 15:37:48 -0400 Original-Received: from mail-wm0-f53.google.com ([74.125.82.53]:37921) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dLx3y-0003JV-Gi for 27391@debbugs.gnu.org; Fri, 16 Jun 2017 15:37:46 -0400 Original-Received: by mail-wm0-f53.google.com with SMTP id u195so19336744wmd.1 for <27391@debbugs.gnu.org>; Fri, 16 Jun 2017 12:37:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=cUT4wSLdZ2l9jgUGT/vVzysm4XVleiqvxfBVrxXSUUY=; b=NA/cy1odN4QZQUYF/G1G/kIoJyZImKMHPOBiKDSB1w9M3fYqLLInvctACz4IkFjkBJ c8gTNjt9rR7d21nIxe1MYNqSkAGZZF2lV4OWB28L3EVoiwLxCsO9Ht50kg+be3y6Tu0X kCdqJmLMuobjVwG0zL0DhdXvEwiK59z1aHqc/gW1a+3d/OOb7p4NMD2STe+o7aCzld6s lXrBE1v+/8CpUziKOMijR/uGZWLA/bprF8TxIIzyMXPqHWE64X8cPH2xPOJLtZgWQRQL HB/CP/X9hnZLBEpU/v3XH8504JD8l8SK1WxpPrH6UmkMWBRm35tk1sJkhDo+rlnl95/+ jvnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=cUT4wSLdZ2l9jgUGT/vVzysm4XVleiqvxfBVrxXSUUY=; b=OG4S6gsYEmkFtTR4tn5aro1qnicxt+IFgFZITCxpGP8PsqQm1E9zzLgoFFfxQlybM/ TebomJCk34G4o4dwQmPcqHvSY6tUxVn6FMrWxAK3K/rPG5PRGf/xFkkiyIoXiITWysHx dd2gfgCPJ/vQ0Ea4pVcJurhTFQXTSQKKh+4MgbnHYWBsY8nDsph7PBXbGRF89uiRqCNW vVehyfbgco98ce+pS0u/g5bNsbO+MS/+5rWA4HxTL4EOhYYL+zd2tVYcSS1FYmdqJ2Dv 0NwmgEPVFByRaNVONIOQs5y6GzCV9wYtvmLKpjfwO5RnF9PDcABTcAxJUeLVtGVM0bQg oWUA== X-Gm-Message-State: AKS2vOwXAIjo6vhDoiVAA3nxBwPxxBAOev203T3Z0T7dZA4BqebtefM7 snlxLm4WQl+gelWUusI= X-Received: by 10.28.92.13 with SMTP id q13mr8483905wmb.20.1497641860614; Fri, 16 Jun 2017 12:37:40 -0700 (PDT) Original-Received: from [192.168.1.19] (ARennes-656-1-267-63.w90-32.abo.wanadoo.fr. [90.32.171.63]) by smtp.googlemail.com with ESMTPSA id y17sm3834700wrb.39.2017.06.16.12.37.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Jun 2017 12:37:40 -0700 (PDT) In-Reply-To: X-Antivirus: Avast (VPS 170616-2, 16/06/2017), Outbound message X-Antivirus-Status: Clean X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:133664 Archived-At: Le 16/06/2017 à 21:15, Vincent Belaïche a écrit : > > > Le 16/06/2017 à 20:38, Eli Zaretskii a écrit : >>> From: vincent.belaiche@gmail.com (Vincent Belaïche) >>> Cc: Vincent Belaïche >>> Date: Fri, 16 Jun 2017 16:08:09 +0200 >>> >>> Attached is the file causing the issue. Recipe is just to visit the >>> file >>> with emacs -q, and you see that the encoding is not taken. >> Your fancy comment causes this: remove the leading '[' and the problem >> goes away. Looks like regex-quoting that somehow misfires. > > After some investigation, it seems that the bug is in regexp-quote: > > (regexp-quote "[comment]: # (") > > outputs > > "^\\[comment]: # ( " > > instead of > > "^\\[comment\\]: # ( " > > > Vincent. > > After some more investigation, I think that the bug is in function insert-file-contents of fileio.c which is the one that decide and sets the coding system well before the other local variables are looked into. --- L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel antivirus Avast. https://www.avast.com/antivirus