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 16:10:57 +0200 Message-ID: <5bdc93b6-5c77-e220-731f-9569175ff3b7@gmail.com> References: <84r2ykc9fa.fsf@gmail.com> 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 1497622340 2113 195.159.176.226 (16 Jun 2017 14:12:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 16 Jun 2017 14:12:20 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 To: 27391@debbugs.gnu.org, Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 16 16:12:15 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 1dLryv-0000F4-Jc for geb-bug-gnu-emacs@m.gmane.org; Fri, 16 Jun 2017 16:12:13 +0200 Original-Received: from localhost ([::1]:59113 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dLrz1-0004ix-03 for geb-bug-gnu-emacs@m.gmane.org; Fri, 16 Jun 2017 10:12:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37105) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dLryp-0004hX-4n for bug-gnu-emacs@gnu.org; Fri, 16 Jun 2017 10:12:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dLryk-0006Kt-2c for bug-gnu-emacs@gnu.org; Fri, 16 Jun 2017 10:12:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48781) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dLryj-0006Kb-VQ for bug-gnu-emacs@gnu.org; Fri, 16 Jun 2017 10:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dLryj-0000EY-RB for bug-gnu-emacs@gnu.org; Fri, 16 Jun 2017 10:12: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 14:12: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.1497622268834 (code B ref 27391); Fri, 16 Jun 2017 14:12:01 +0000 Original-Received: (at 27391) by debbugs.gnu.org; 16 Jun 2017 14:11:08 +0000 Original-Received: from localhost ([127.0.0.1]:51458 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dLrxr-0000DO-P6 for submit@debbugs.gnu.org; Fri, 16 Jun 2017 10:11:07 -0400 Original-Received: from mail-wm0-f54.google.com ([74.125.82.54]:37219) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dLrxp-0000Ct-LZ for 27391@debbugs.gnu.org; Fri, 16 Jun 2017 10:11:06 -0400 Original-Received: by mail-wm0-f54.google.com with SMTP id d73so24965424wma.0 for <27391@debbugs.gnu.org>; Fri, 16 Jun 2017 07:11:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=0jIFiYxXr9xIKJ3S6TXDmN8d7vLfLVN1nWxcAZdEbf8=; b=QmvMSFDwW82SM5A2AfiKPPv+KaD/a9Y03p8l8YIeeWsoC4L3lppcQ9kF65R9X05yfh kaAamlYBkmVZsRkJDRKcD+jSbfVBPa8FqEo/ReiMXd2PKlT3KGE4QpJF6TBPYHiYBzyp Z2dKbnfL9l5f/Tm+C8h1JwGPuPfwdSMn0s5OeYIAHR4pZlRJkEdu7gANPulcDvAkmKII MPfR3/+J36Lcjc7I8Oau4bQ03YN749u2ksl1KtUN+IgCL7fH3iFCL+YUms6KxmQus54B lArtsTaIerMCtxtotBwlRNrSbH6XjGvPOyslShHxCsVKgFpFffdGMK8Dkx0z4pdBwFQF DNFg== 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:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=0jIFiYxXr9xIKJ3S6TXDmN8d7vLfLVN1nWxcAZdEbf8=; b=tYxD5ApQymjgGs3Q4GcWHKLqc5RgGPJmq6/1gj9K4QSX0XOxXr4zLIfrGYSf5MI6/u hC6vYjI9bAtB/JWOfro5+v0wF2uLClvbJZD5oa7Og2mHqHjsN6j0vtoENK0WuX5tavZJ +oSSYt8gYOVIgPCPVMZa12TFQUjHGd0pJygPkeYhAdqj78ERMKSxtFDXeIZuSYDQ0HzP sX89ierNh+kAqr5HJ1QJD9Mj6B8c6qcw7i63buuOfECS3livs6DFjRYk1sP8WXJc7daZ qdOV9tXL2QDziTik+ggAGsuuLEmTTIjDd6EnC3VaKH7rxPlCZDdRMoEBcmhwBt2MwVEj tnkQ== X-Gm-Message-State: AKS2vOxjjks2lWUg758Y4jLJf5WpRG8UBri/KiJW1TWGDVJW6ct44iip G/fKGnqgE+uRhA== X-Received: by 10.28.59.212 with SMTP id i203mr7195989wma.18.1497622259954; Fri, 16 Jun 2017 07:10:59 -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 r142sm2307426wmg.24.2017.06.16.07.10.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Jun 2017 07:10:59 -0700 (PDT) In-Reply-To: <84r2ykc9fa.fsf@gmail.com> X-Antivirus: Avast (VPS 170616-0, 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:133645 Archived-At: Le 16/06/2017 à 16:08, Vincent Belaïche a écrit : > Le 16/06/2017 à 14:59, Eli Zaretskii a écrit : >>> From: vincent.belaiche@gmail.com (Vincent Belaïche) >>> Date: Fri, 16 Jun 2017 12:00:06 +0200 >>> Cc: Vincent Belaïche >>> >>> I was editing some file written in Markdown. Here is the file : >>> >>> https://framagit.org/latex-pourquoi-comment/lpc-articles/blob/795ecb9d4f7b8870486fe6557f01d2fe450c4461/CONTRIBUTING.md >>> >>> My Emacs default configuration was to get files in latin-1. So I had >>> added some `coding: utf-8' cookie in this file. But it did not work, the >>> file was still read in latin-1 instead of utf8. >> I cannot reproduce this, and I don't see any coding cookies in the >> file I downloaded. >> >> Please provide a minimal recipe that's required to reproduce the >> problem. In particular, since you tried in "emacs -q", I don't >> understand what does it mean that your default configuration is >> latin-1: in "emacs -q" your default configuration is determined by >> your system locale. >> >> Thanks. > 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. > > For instance I get the following doc section : > > --8<----8<----8<----8<----8<-- begin -->8---->8---->8---->8---->8---- > ### doc > Placez dans *doc* et ses sous-répertoires toute la documentation afférente au projet, sans oublier les notes et courriers électroniques importants. Vous pouvez avoir des sous-répertoires de doc contenant différents types de documents ou pour différentes phases du projet. > --8<----8<----8<----8<----8<-- end -->8---->8---->8---->8---->8---- > > Instead of: > > --8<----8<----8<----8<----8<-- begin -->8---->8---->8---->8---->8---- > ### doc > Placez dans *doc* et ses sous-répertoires toute la documentation afférente au projet, sans oublier les notes et courriers électroniques importants. Vous pouvez avoir des sous-répertoires de doc contenant différents types de documents ou pour différentes phases du projet. > --8<----8<----8<----8<----8<-- end -->8---->8---->8---->8---->8---- > > Vincent. > > > > --- > L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel antivirus Avast. > https://www.avast.com/antivirus Just for the clarification, you needed to click on the open raw button to see the cookie. I should have sent you this link : https://framagit.org/latex-pourquoi-comment/lpc-articles/raw/795ecb9d4f7b8870486fe6557f01d2fe450c4461/CONTRIBUTING.md Instead of the "viewer" equivalent link, where the markdown tags are interpreted into formatting. You cannot see the cookies with the viewer link because they are commented out, so the viewer does not display them. V.