From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Fery Newsgroups: gmane.emacs.bugs Subject: edited file is deleted when the file cannot be saved because of its coding system Date: Mon, 02 Jun 2003 15:44:20 +0200 Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <3EDB54B4.D1F6462C@innomed.hu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------61959B984FA2BB1436CD4165" X-Trace: main.gmane.org 1054561608 20093 80.91.224.249 (2 Jun 2003 13:46:48 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 2 Jun 2003 13:46:48 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 02 15:46:45 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19Mpdr-0005Cg-00 for ; Mon, 02 Jun 2003 15:46:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19Mper-0000G7-Rp for gnu-bug-gnu-emacs@m.gmane.org; Mon, 02 Jun 2003 09:47:29 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19Mpbz-0007Sr-1z for bug-gnu-emacs@gnu.org; Mon, 02 Jun 2003 09:44:31 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19MpbZ-000747-K1 for bug-gnu-emacs@gnu.org; Mon, 02 Jun 2003 09:44:07 -0400 Original-Received: from [212.24.168.157] (helo=lajos.innomed.hu) by monty-python.gnu.org with esmtp (Exim 4.20) id 19Mpaf-0006N9-5Q for bug-gnu-emacs@gnu.org; Mon, 02 Jun 2003 09:43:09 -0400 Original-Received: from innomed.hu (FERY [100.0.0.218]) by lajos.innomed.hu with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2232.9) id L51H12YN; Mon, 2 Jun 2003 15:57:13 +0200 X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U) X-Accept-Language: en Original-To: bug-gnu-emacs@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:5216 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:5216 This is a multi-part message in MIME format. --------------61959B984FA2BB1436CD4165 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit In GNU Emacs 21.3.2 (i386-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2003-04-24 on raven, modified by Debian configured using `configure i386-linux --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --with-x=yes --with-x-toolkit=athena --without-gif' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: C locale-coding-system: nil default-enable-multibyte-characters: t Please describe exactly what actions triggered the bug and the precise symptoms of the bug: I have loaded a utf-8 encoded text into the buffer, modified it, then tried to save it. Now emacs said the following: --------------- These default coding systems were tried: iso-latin-1-unix However, none of them safely encodes the target text. Select one of the following safe coding systems: utf-8 mule-utf-16-le mule-utf-16-be raw-text emacs-mule no-conversion --------------- After that, I have entered C-g to escape from this function. At this point, my original file has gone (and, there is no recovery file yet). Anyway, if I quit without saving, the #filename# file's content isn't the same as the original (it contains \201 bytes before non-ascii chars). (Anyway, it is interesting why emacs does not recognize my txt as utf-8 text, and interprets it as iso-latin-1-unix...) Attached I send the file gzipped which was loaded into emacs. emacs started with: 'emacs test' Recent input: a DEL C-x C-s C-g C-x C-c n n o RET ESC x r e p o TAB r TAB RET (If I would say 'yes' instead of 'no' at quit, emacs would generate a '#test#' file where some bytes are preceded by \201 bytes.) Recent messages: Loading 50nowebm (source)...done Loading 50w3 (source)...done Loading 55doxymacs (source)... Loading mule-util...done Loading 55doxymacs (source)...done For information about the GNU Project and its goals, type C-h C-p. Loading view...done byte-code: Quit Making completion list... Loading emacsbug...done Regards: Circum --------------61959B984FA2BB1436CD4165 Content-Type: application/x-gzip; name="test.gz" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="test.gz" H4sICH+80T4AA3Rlc3QAU1bILFHILFZIVMgozUtPLMpMzFMozy9K0VFIzk9JTVHIzFMoLUnT tdDT0+NSUAAK5uam5pUo2CocnlpUdXhrWmpWTmpxVcnhlcVcADJ6kntLAAAA --------------61959B984FA2BB1436CD4165 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit _______________________________________________ Bug-gnu-emacs mailing list Bug-gnu-emacs@gnu.org http://mail.gnu.org/mailman/listinfo/bug-gnu-emacs --------------61959B984FA2BB1436CD4165--