From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: encoding used by those #some.txt# backup? Date: Mon, 19 Jan 2009 22:37:44 +0200 Message-ID: References: <692dfade-ef63-40aa-96e9-229d65e1a584@r41g2000prr.googlegroups.com> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1232397572 15978 80.91.229.12 (19 Jan 2009 20:39:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 19 Jan 2009 20:39:32 +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 Jan 19 21:40:44 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LP0vL-0000F0-D8 for geh-help-gnu-emacs@m.gmane.org; Mon, 19 Jan 2009 21:40:43 +0100 Original-Received: from localhost ([127.0.0.1]:52135 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LP0u4-0000Dv-CB for geh-help-gnu-emacs@m.gmane.org; Mon, 19 Jan 2009 15:39:24 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LP0sQ-0008Dn-PF for help-gnu-emacs@gnu.org; Mon, 19 Jan 2009 15:37:42 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LP0sP-0008D8-Vi for help-gnu-emacs@gnu.org; Mon, 19 Jan 2009 15:37:42 -0500 Original-Received: from [199.232.76.173] (port=45665 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LP0sP-0008Cx-Py for help-gnu-emacs@gnu.org; Mon, 19 Jan 2009 15:37:41 -0500 Original-Received: from mtaout2.012.net.il ([84.95.2.4]:34158) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LP0sP-0005oY-9t for help-gnu-emacs@gnu.org; Mon, 19 Jan 2009 15:37:41 -0500 Original-Received: from conversion-daemon.i_mtaout2.012.net.il by i_mtaout2.012.net.il (HyperSendmail v2004.12) id <0KDQ00300JY1KW00@i_mtaout2.012.net.il> for help-gnu-emacs@gnu.org; Mon, 19 Jan 2009 22:37:52 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.127.131.96]) by i_mtaout2.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0KDQ00DAHJZ23W12@i_mtaout2.012.net.il> for help-gnu-emacs@gnu.org; Mon, 19 Jan 2009 22:37:51 +0200 (IST) In-reply-to: <692dfade-ef63-40aa-96e9-229d65e1a584@r41g2000prr.googlegroups.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by monty-python.gnu.org: Solaris 9.1 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:61477 Archived-At: > From: Xah Lee > Date: Mon, 19 Jan 2009 10:30:34 -0800 (PST) > > it seems emacs's crash backup files saved my utf-8 files in a > different encoding. It's the internal representation of characters used by Emacs. Since auto-save files must be always encoded correctly, the only safe way of doing that is to dump the internal representation. > If i have a crash, then opening the #x.txt# file the content is: > > \234\364\370\261 something > > since my files have lots of unicode, this renders those auto-save not > usable. M-x recover-file RET should DTRT. > is this a bug or am i missing some file encoding for this type of > backups? M-x recover-file RET should decode them correctly.