unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Kenichi Handa <handa@m17n.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: Coding system detection: Emacs 23 vs. 22
Date: Wed, 12 Mar 2008 10:05:04 +0900	[thread overview]
Message-ID: <E1JZFOy-00044z-7s@etlken.m17n.org> (raw)
In-Reply-To: <jwvejahgdsv.fsf-monnier+emacs@gnu.org> (message from Stefan Monnier on Tue, 11 Mar 2008 17:19:07 -0400)

In article <jwvejahgdsv.fsf-monnier+emacs@gnu.org>, Stefan Monnier <monnier@iro.umontreal.ca> writes:

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

In Emacs 23, the charset definition for iso-8859-1 is taken
from glibc's locale data
(/usr/share/i18n/charmaps/ISO-8859-1.gz), and it contains
0x80..0x9F.  So, in the environment that prefer iso-latin-1,
most files are detected as iso-latin-1.

> > Expected behavior:

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

> I suspect this is related to bug #16
> http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=16

If gnus writes score files in emacs-mule, it must read that
file by explicitly specifying emacs-mule.  Or, it must write
score files with coding: tag.

The detection of emacs-mule is not 100% correct even in
Emacs 22.  If the problem didn't appear in Emacs 22, it is
just because of good luck.

---
Kenichi Handa
handa@ni.aist.go.jp




  reply	other threads:[~2008-03-12  1:05 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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=E1JZFOy-00044z-7s@etlken.m17n.org \
    --to=handa@m17n.org \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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).