From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#21574: po-mode mishandles ASCII files Date: Mon, 28 Sep 2015 07:55:12 -0700 Organization: UCLA Computer Science Department Message-ID: <560954D0.2010503@cs.ucla.edu> References: <56084B12.90307@cs.ucla.edu> <838u7qetiu.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1443475126 32123 80.91.229.3 (28 Sep 2015 21:18:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Sep 2015 21:18:46 +0000 (UTC) Cc: 21574@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 28 23:18:36 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Zgfof-0003Ff-ET for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 Sep 2015 23:18:33 +0200 Original-Received: from localhost ([::1]:40909 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zgfoe-0002Dw-JS for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 Sep 2015 17:18:32 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49692) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZgZqY-0000YS-78 for bug-gnu-emacs@gnu.org; Mon, 28 Sep 2015 10:56:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZgZqU-0006zE-SA for bug-gnu-emacs@gnu.org; Mon, 28 Sep 2015 10:56:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57845) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZgZqU-0006z9-Op for bug-gnu-emacs@gnu.org; Mon, 28 Sep 2015 10:56:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZgZqU-0000t2-I3 for bug-gnu-emacs@gnu.org; Mon, 28 Sep 2015 10:56:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 28 Sep 2015 14:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21574 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21574-submit@debbugs.gnu.org id=B21574.14434521203355 (code B ref 21574); Mon, 28 Sep 2015 14:56:02 +0000 Original-Received: (at 21574) by debbugs.gnu.org; 28 Sep 2015 14:55:20 +0000 Original-Received: from localhost ([127.0.0.1]:46816 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZgZpn-0000s3-GP for submit@debbugs.gnu.org; Mon, 28 Sep 2015 10:55:19 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:58152) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZgZpl-0000rs-27 for 21574@debbugs.gnu.org; Mon, 28 Sep 2015 10:55:17 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id F1B3D160E57; Mon, 28 Sep 2015 07:55:15 -0700 (PDT) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id uYrdsV58dpgz; Mon, 28 Sep 2015 07:55:15 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 4C0F4160E58; Mon, 28 Sep 2015 07:55:15 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id uOMlgWoJrlAI; Mon, 28 Sep 2015 07:55:15 -0700 (PDT) Original-Received: from Penguin.CS.UCLA.EDU (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 34F61160E57; Mon, 28 Sep 2015 07:55:15 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 In-Reply-To: <838u7qetiu.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:107013 Archived-At: On 09/28/2015 03:18 AM, Eli Zaretskii wrote: > do we have a similar problem in other files that have entries in > file-coding-system-alist, like XML files or LaTeX files? Not with XML, because xml-find-file-coding-system only tries=20 detect-coding-region. But there is a problem with LaTeX. For example, if I visit a file like=20 this: \usepackage[ascii]{inputenc} hello The default coding system for saving the buffer is us-ascii-unix, which=20 is correct (and is better than what we get with .po files). But if I=20 then insert a non-ASCII character, say =C3=A1, and type C-x C-s, Emacs=20 changes the coding system to utf-8-unix without asking and saves the=20 file. If I then revisit the file I get garbage: the =C3=A1 is decoded as= two=20 bytes and I see \303\241 on the screen.