From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: grivet Newsgroups: gmane.emacs.help Subject: non-ASCII characters in auto-save files Date: Mon, 25 Jun 2012 14:46:24 +0200 Message-ID: <4FE85DA0.7080201@cnrs-orleans.fr> Reply-To: grivet@cnrs-orleans.fr NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------090601000802090907000104" X-Trace: dough.gmane.org 1340638784 10349 80.91.229.3 (25 Jun 2012 15:39:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 25 Jun 2012 15:39:44 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 25 17:39:43 2012 Return-path: Envelope-to: geh-help-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 1SjBOA-0003Kd-VB for geh-help-gnu-emacs@m.gmane.org; Mon, 25 Jun 2012 17:39:43 +0200 Original-Received: from localhost ([::1]:60368 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SjApL-0000wq-Rt for geh-help-gnu-emacs@m.gmane.org; Mon, 25 Jun 2012 11:03:43 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:49374) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sj9VY-0007S7-Jr for help-gnu-emacs@gnu.org; Mon, 25 Jun 2012 09:39:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sj9VS-0002dQ-IG for help-gnu-emacs@gnu.org; Mon, 25 Jun 2012 09:39:12 -0400 Original-Received: from mailgw.cnrs-orleans.fr ([163.9.1.10]:45335) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sj9VS-0002d8-8q for help-gnu-emacs@gnu.org; Mon, 25 Jun 2012 09:39:06 -0400 Original-Received: from localhost (mailgw.cnrs-orleans.fr [127.0.0.1]) by mailgw.cnrs-orleans.fr (Postfix) with ESMTP id B87887C055 for ; Mon, 25 Jun 2012 14:46:25 +0200 (CEST) X-Virus-Scanned: amavisd-new at cnrs-orleans.fr Original-Received: from mailgw.cnrs-orleans.fr ([127.0.0.1]) by localhost (mailgw.cnrs-orleans.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tr5kl5AnJKZx for ; Mon, 25 Jun 2012 14:46:25 +0200 (CEST) Original-Received: from [127.0.0.1] (pcchar08.cnrs-orleans.fr [163.9.6.139]) by mailgw.cnrs-orleans.fr (Postfix) with ESMTP id 460BE7C053 for ; Mon, 25 Jun 2012 14:46:25 +0200 (CEST) User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 163.9.1.10 X-Mailman-Approved-At: Mon, 25 Jun 2012 11:03:26 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:85453 Archived-At: This is a multi-part message in MIME format. --------------090601000802090907000104 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hello, I write a lot of text under WinXP/Emacs/Latex, in French. For some unknown reason, emacs sometimes crashes and I am left with an auto-save file, say #myfile#. My problem is that, in such a file, all non ASCII characters are mangled. I can open #myfile# in Emacs, but accented e's, for instance, appear as \303\250 or as \201\250 and similarly for all accented letters. If I try to save #myfile# to disk, Emacs telles me it cannot encode these characters. Here is the answer I get when I do C-uC-x = on one of the offending chars: c-u c-x = character: (4194216, #o17777650, #x3fffa8) preferred charset: eight-bit (Raw bytes 128-255) code point: 0xA8 syntax: w which means: word buffer code: #xA8 file code: not encodable by coding system emacs-mule-unix display: no font available I have two questions: - Can Emacs be persuaded to to encode auto-save files in a more useful manner ? - Is there a systematic way to convert #myfile# to iso-latin-9 (or iso-latin-1) code, other than painstakingly searching and replacing offending chars ? Thanks in advance for your time and help JP Grivet --------------090601000802090907000104 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hello,
I write a lot of text under WinXP/Emacs/Latex, in French. For some unknown reason, emacs sometimes crashes and
I am left with an auto-save file, say #myfile#.
My problem is that, in such a file, all non ASCII characters are mangled. I can open #myfile# in Emacs, but accented e's, for instance,
appear as \303\250 or as \201\250 and similarly for all accented letters.
If I try to save #myfile# to disk, Emacs telles me it cannot encode these characters. Here is the answer I get when I do C-uC-x = on one
of the offending chars:

c-u c-x =

        character:   (4194216, #o17777650, #x3fffa8)
preferred charset: eight-bit (Raw bytes 128-255)
       code point: 0xA8
           syntax: w     which means: word
      buffer code: #xA8
        file code: not encodable by coding system emacs-mule-unix
          display: no font available

I have two questions:
    - Can Emacs be persuaded to to encode auto-save files in a more useful manner ?
    - Is there a systematic way to convert #myfile# to iso-latin-9 (or iso-latin-1) code, other than painstakingly
searching and replacing offending chars ?

Thanks in advance for your time and help
JP Grivet


--------------090601000802090907000104--