diff options
| author | Eli Zaretskii | 2000-12-01 15:47:46 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2000-12-01 15:47:46 +0000 |
| commit | 7c94ccf681a78df1ca380dd85da49bfc51801e24 (patch) | |
| tree | c874912747ed059dfcf3d40fbcda752012fb8caf | |
| parent | 68875f0e7b0b8a883dcbcbc9ce18e9bb3dc63cee (diff) | |
| download | emacs-7c94ccf681a78df1ca380dd85da49bfc51801e24.tar.gz emacs-7c94ccf681a78df1ca380dd85da49bfc51801e24.zip | |
Explain why `no-conversion' is no longer appropriate for reading
files with MULE internal representation, such as auto-save files.
| -rw-r--r-- | etc/NEWS | 17 |
1 files changed, 17 insertions, 0 deletions
| @@ -2002,6 +2002,23 @@ make a difference to some code. | |||
| 2002 | ** The new treatment of the minibuffer prompt might affect code which | 2002 | ** The new treatment of the minibuffer prompt might affect code which |
| 2003 | operates on the minibuffer. | 2003 | operates on the minibuffer. |
| 2004 | 2004 | ||
| 2005 | ** The new character sets `eight-bit-control' and `eight-bit-graphic' | ||
| 2006 | cause `no-conversion' and `emacs-mule-unix' coding systems to produce | ||
| 2007 | different results when reading files with non-ASCII characters | ||
| 2008 | (previously, both coding systems would produce the same results). | ||
| 2009 | Specifically, `no-conversion' interprets each 8-bit byte as a separate | ||
| 2010 | character. This makes `no-conversion' inappropriate for reading | ||
| 2011 | multibyte text, e.g. buffers written to disk in their internal MULE | ||
| 2012 | encoding (auto-saving does that, for example). If a Lisp program | ||
| 2013 | reads such files with `no-conversion', each byte of the multibyte | ||
| 2014 | sequence, including the MULE leading codes such as \201, is treated as | ||
| 2015 | a separate character, which prevents them from being interpreted in | ||
| 2016 | the buffer as multibyte characters. | ||
| 2017 | |||
| 2018 | Therefore, Lisp programs that read files which contain the internal | ||
| 2019 | MULE encoding should use `emacs-mule-unix'. `no-conversion' is only | ||
| 2020 | appropriate for reading truly binary files. | ||
| 2021 | |||
| 2005 | 2022 | ||
| 2006 | * Lisp changes made after edition 2.6 of the Emacs Lisp Manual, | 2023 | * Lisp changes made after edition 2.6 of the Emacs Lisp Manual, |
| 2007 | (Display-related features are described in a page of their own below.) | 2024 | (Display-related features are described in a page of their own below.) |