unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Coding system detection: Emacs 23 vs. 22
@ 2008-03-11 20:07 Reiner Steib
  2008-03-11 21:19 ` Stefan Monnier
  0 siblings, 1 reply; 8+ messages in thread
From: Reiner Steib @ 2008-03-11 20:07 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 1471 bytes --]

Hi,

when opening the attached file (see attachment `ae.el.gz'), thee
coding system detection of Emacs 23 and 22 give different results:

- Emacs 22 (both, Emacs 21.1 and the current Emacs 22 branch) says
  emacs-mule-unix.  (The file was created with Emacs 22)

- Emacs 23, says iso-latin-1-unix

The real problem with this is that my Gnus score files of Emacs 22 no
longer work with Emacs 23 if the score entry (subject, author, ...)
contains a non-ascii character.


Expected behavior:

Emacs 23 should detect that the attached file is not iso-latin-1 (even
`file' detects this) but emacs-mule.


To reproduce:

Save attachment to /tmp/ae.el.gz

$ gunzip /tmp/ae.el.gz

$ file /tmp/ae.el 
/tmp/ae.el: Non-ISO extended-ASCII text
$ /usr/bin/emacs --batch -Q /tmp/ae.el --eval \
  '(message "buffer-file-coding-system=%s, %s" buffer-file-coding-system \
  emacs-version)' -kill
buffer-file-coding-system=emacs-mule-unix, 22.1.1
$ cvs-EMACS_22_BASE/i686/src/emacs --batch -Q /tmp/ae.el --eval \
  '(message "buffer-file-coding-system=%s, %s" buffer-file-coding-system \
  emacs-version)' -kill
buffer-file-coding-system=emacs-mule-unix, 22.1.92.2
$ cvs-HEAD/i686/src/emacs --batch -Q /tmp/ae.el --eval \
  '(message "buffer-file-coding-system=%s, %s" buffer-file-coding-system \
  emacs-version)' -kill
buffer-file-coding-system=iso-latin-1-unix, 23.0.60.2

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/

[-- Attachment #2: ae.el.gz --]
[-- Type: application/x-gzip, Size: 27 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: Coding system detection: Emacs 23 vs. 22
@ 2008-03-12  8:49 Angelo Graziosi
  2008-03-12 10:56 ` Kenichi Handa
  0 siblings, 1 reply; 8+ messages in thread
From: Angelo Graziosi @ 2008-03-12  8:49 UTC (permalink / raw)
  To: Kenichi Handa; +Cc: emacs-devel

Kenichi Handa wrote:

 > Ouch!  I installed the null-byte detection in the trunk
 > before unicode-merge, but it seems that the change was lost
 > by the merge.

Could this thread be related to the warnings I flagged in [1]?


Cheers,
    Angelo.

---
[1] http://lists.gnu.org/archive/html/emacs-devel/2008-02/msg00689.html

Facesti come quei che va di notte,
che porta il lume dietro e se' non giova,
ma dopo se' fa le persone dotte.
-
                   DANTE, Purgatorio, xxii 67-69




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2008-04-03 12:35 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-11 20:07 Coding system detection: Emacs 23 vs. 22 Reiner Steib
2008-03-11 21:19 ` Stefan Monnier
2008-03-12  1:05   ` Kenichi Handa
2008-03-12  2:15     ` Stefan Monnier
2008-03-12  3:45       ` Kenichi Handa
2008-04-03 12:35         ` Kenichi Handa
  -- strict thread matches above, loose matches on Subject: below --
2008-03-12  8:49 Angelo Graziosi
2008-03-12 10:56 ` Kenichi Handa

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).