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:15:37 +0200 Message-ID: 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 1497640681 17246 195.159.176.226 (16 Jun 2017 19:18:01 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 16 Jun 2017 19:18:01 +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:17:53 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 1dLwki-0003oN-NM for geb-bug-gnu-emacs@m.gmane.org; Fri, 16 Jun 2017 21:17:52 +0200 Original-Received: from localhost ([::1]:60478 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dLwkj-0003v5-0u for geb-bug-gnu-emacs@m.gmane.org; Fri, 16 Jun 2017 15:17:53 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50764) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dLwj1-0002Hq-6s for bug-gnu-emacs@gnu.org; Fri, 16 Jun 2017 15:16:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dLwiw-0001za-8m for bug-gnu-emacs@gnu.org; Fri, 16 Jun 2017 15:16:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49017) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dLwiw-0001z0-51 for bug-gnu-emacs@gnu.org; Fri, 16 Jun 2017 15:16:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dLwiv-0002oL-PK for bug-gnu-emacs@gnu.org; Fri, 16 Jun 2017 15:16:01 -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:16:01 +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.149764054810783 (code B ref 27391); Fri, 16 Jun 2017 19:16:01 +0000 Original-Received: (at 27391) by debbugs.gnu.org; 16 Jun 2017 19:15:48 +0000 Original-Received: from localhost ([127.0.0.1]:51694 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dLwii-0002nq-AY for submit@debbugs.gnu.org; Fri, 16 Jun 2017 15:15:48 -0400 Original-Received: from mail-wm0-f53.google.com ([74.125.82.53]:35087) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dLwig-0002nd-KT for 27391@debbugs.gnu.org; Fri, 16 Jun 2017 15:15:46 -0400 Original-Received: by mail-wm0-f53.google.com with SMTP id x70so33684781wme.0 for <27391@debbugs.gnu.org>; Fri, 16 Jun 2017 12:15: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=rTvIzqpzmsryPZY5eF82cA9z8E5bo7ElOwTN4uBQ2Wg=; b=CA4j5bXyReXw3a7kMZ5bBoZ7Eb+iufYWCWxlVVmiV6FEY2dQpooBmGr5/A9r2e8xfM 9/lWzOxw+QWyuWBxxr0nAhe6ngEIPKsargErMWTJ+fh9vTGw+zqR9JNk/5YI94vEAipd m9FdMKfn4NjToeJlS4THT5Yqdp65IvVGBZqu0htvLzmpmxlFuVuCHgbMlONBe7xhmEds HcsRDbFDSiv09QsITrvXy0rpXCOsvPsOyCIAyhMmd7hXi51Egr7M4ftWP3F4IaHmo2Z4 Jpd1fHghmDeNsw/uAMDJun1eW9HP24N2GlpQUAnyvhVS+lABrUoN88GDO6pRUPeZMdD5 CFXQ== 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=rTvIzqpzmsryPZY5eF82cA9z8E5bo7ElOwTN4uBQ2Wg=; b=FWWl50QJcaH0wkr6E7DHjL3OaGcb/lNe6DMWgJG88+GgiE8/1K9kLhkVTdh35VPc4x l5YAWvTQMAlo0+AppnWZj7CvjCKI4d/R8nXqiwdYaPWz76OPFjs6NoUMnNK2BVsZuD+D UCP3Wv6yy/0SnPvq+AkYZrD+jWlzs8UCVe8RfIetTQOyPpXNc16gfnn7/JC3cYwH60q0 33ZUS5CsUk3B1LYH9bLok0YXTGVGlf1tZFgvhEsoYV1xPo8i+IEl26w6BugdjD3NO+iy WWlKYp8t3YKBxpNwGbs9zq5Gb3EE3O4gHA1jC9XyyNKC/pEyPC6V5H2LaW49T9PR83hj Uikw== X-Gm-Message-State: AKS2vOy1ECoraICIQQmtmhMiftIOrJy0t8PIkrsWt2ORuDsqVBELTBVp irBU1EIfx/Jv5ZnHeMM= X-Received: by 10.28.158.206 with SMTP id h197mr7123797wme.110.1497640540815; Fri, 16 Jun 2017 12:15: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 22sm3635592wrt.36.2017.06.16.12.15.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Jun 2017 12:15:40 -0700 (PDT) In-Reply-To: <83y3srzske.fsf@gnu.org> 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:133662 Archived-At: 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. --- L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel antivirus Avast. https://www.avast.com/antivirus