all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Automatic recognition of some specific coding systems
Date: Wed, 25 Feb 2015 18:19:14 +0200	[thread overview]
Message-ID: <83twya55h9.fsf@gnu.org> (raw)
In-Reply-To: <DUB124-W90938708558C1FBE7E95BA8160@phx.gbl>

> From: Jürgen Hartmann <juergen_hartmann_@hotmail.com>
> Date: Tue, 24 Feb 2015 23:30:49 +0100
> 
> Consider an utf-8-unix encoded text file, meaningfully named
> utf-8-unix, that just contains the seven German special characters
> 
>    äöüßÄÖÜ   ("a"o"u"s"A"O"U)
> 
> in one single line followed by a newline character. Now we make two
> copies of this file and recode them to the other coding systems of
> interest:
> 
>    cp utf-8-unix latin-9-unix
>    recode ..l9 latin-9-unix
> 
>    cp utf-8-unix cp850-dos
>    recode ..pc cp850-dos
> 
> Visiting all tree files in an Emacs session that was freshly started
> by means of
> 
>    emacs -Q
> 
> - thank you for that important hint - yields a perfect recognition of
> the respective coding in the case of
> 
>    utf-8-unix
>    latin-9-unix   (recognized as latin-1-unix, equivalent here)
> 
> but the recognition fails tor the cp850-dos encoded file, as it is
> recognized as
> 
>    raw-text-dos
> 
> encoded and its contents is displayed as
> 
>    \204\224\201\341\216\231\232

That's true, but I see the same behavior in Emacs 22.3, if I invoke it
with "emacs -q" (lowercase 'q', since 22.x didn't support -Q), so
there's no change in behavior here.

> So my problem is to find a configuration of Emacs 24.4 that yields a
> correct automatic recognition of all tree coding systems
> 
>    utf-8-unix
>    latin-9-unix or
>    cp850-dos
> 
> when the files of the example above are visited. One has to keep in
> mind that this was perfectly possible with Emacs 22.3, as I just
> verified again.

How exactly did you verify with v22.3?  As I wrote above, I see the
same behavior in that version.  Did you invoke it with -q?  If not,
there are some customization of yours that modify the default
behavior, and the question becomes how to express the same
customizations in Emacs 24.




  reply	other threads:[~2015-02-25 16:19 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-24 15:31 Automatic recognition of some specific coding systems Jürgen Hartmann
2015-02-24 18:28 ` Eli Zaretskii
2015-02-24 22:30   ` Jürgen Hartmann
2015-02-25 16:19     ` Eli Zaretskii [this message]
2015-02-25 17:53       ` Jürgen Hartmann
2015-02-25 20:29         ` Eli Zaretskii
2015-02-25 23:23           ` Jürgen Hartmann
2015-02-26 16:36             ` Eli Zaretskii
2015-02-26 22:34               ` Jürgen Hartmann
2015-02-28 16:55                 ` Eli Zaretskii
2015-03-03 22:58                   ` Jürgen Hartmann
2015-02-27  1:50 ` Yuri Khan
2015-02-27 12:12   ` Jürgen Hartmann
2015-02-27 12:25     ` Jürgen Hartmann

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

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

  git send-email \
    --in-reply-to=83twya55h9.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=help-gnu-emacs@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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.