unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Reiner Steib <reinersteib+gmane@imap.cc>
To: emacs-devel@gnu.org
Subject: Coding system detection: Emacs 23 vs. 22
Date: Tue, 11 Mar 2008 21:07:09 +0100	[thread overview]
Message-ID: <v97ig9gh3m.fsf@marauder.physik.uni-ulm.de> (raw)

[-- 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 --]

             reply	other threads:[~2008-03-11 20:07 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-11 20:07 Reiner Steib [this message]
2008-03-11 21:19 ` Coding system detection: Emacs 23 vs. 22 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=v97ig9gh3m.fsf@marauder.physik.uni-ulm.de \
    --to=reinersteib+gmane@imap.cc \
    --cc=Reiner.Steib@gmx.de \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).