* encoding used by those #some.txt# backup? @ 2009-01-19 18:30 Xah Lee 2009-01-19 20:37 ` Eli Zaretskii 2009-01-29 5:59 ` fnn 0 siblings, 2 replies; 3+ messages in thread From: Xah Lee @ 2009-01-19 18:30 UTC (permalink / raw) To: help-gnu-emacs it seems emacs's crash backup files saved my utf-8 files in a different encoding. for example, if i'm editing x.txt, i have a line: ∑ something then emacs will create a file #x.txt# while x.txt buffer has not been saved. 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. (diff becomes useless because about every line is shown as different due to the encoding) is this a bug or am i missing some file encoding for this type of backups? Those normal backup x.txt~ files are fine. Thanks. Xah ∑ http://xahlee.org/ ☄ ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: encoding used by those #some.txt# backup? 2009-01-19 18:30 encoding used by those #some.txt# backup? Xah Lee @ 2009-01-19 20:37 ` Eli Zaretskii 2009-01-29 5:59 ` fnn 1 sibling, 0 replies; 3+ messages in thread From: Eli Zaretskii @ 2009-01-19 20:37 UTC (permalink / raw) To: help-gnu-emacs > From: Xah Lee <xahlee@gmail.com> > 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. ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: encoding used by those #some.txt# backup? 2009-01-19 18:30 encoding used by those #some.txt# backup? Xah Lee 2009-01-19 20:37 ` Eli Zaretskii @ 2009-01-29 5:59 ` fnn 1 sibling, 0 replies; 3+ messages in thread From: fnn @ 2009-01-29 5:59 UTC (permalink / raw) To: help-gnu-emacs You should set a apropriate Language Environment ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-01-29 5:59 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2009-01-19 18:30 encoding used by those #some.txt# backup? Xah Lee 2009-01-19 20:37 ` Eli Zaretskii 2009-01-29 5:59 ` fnn
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).