[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Automatic recognition of some specific coding systems
From: |
Eli Zaretskii |
Subject: |
Re: Automatic recognition of some specific coding systems |
Date: |
Sat, 28 Feb 2015 18:55:46 +0200 |
> From: Jürgen Hartmann <juergen_hartmann_@hotmail.com>
> Date: Thu, 26 Feb 2015 23:34:05 +0100
>
> > . Similarly, if the cp850 files' contents match some common regexp,
> > you can customize auto-coding-regexp-alist to force their decoding
> > by cp850
>
> That one might do the trick: In my case the only files (at least in
> the big picture) that use the DOS EOL variant are those encoded with
> cp850 and vice versa. So one could think about a regular expression
> that matches this unique EOL pattern.
A more reliable test might be characters whose codepoints are between
128 and 159: those should generally be absent from ISO-8859 encodings.
(Emacs doesn't use this fact for good reasons, but in your specific
case those reasons should not matter, I think.)
- Automatic recognition of some specific coding systems, Jürgen Hartmann, 2015/02/24
- Re: Automatic recognition of some specific coding systems, Eli Zaretskii, 2015/02/24
- RE: Automatic recognition of some specific coding systems, Jürgen Hartmann, 2015/02/24
- Re: Automatic recognition of some specific coding systems, Eli Zaretskii, 2015/02/25
- RE: Automatic recognition of some specific coding systems, Jürgen Hartmann, 2015/02/25
- Re: Automatic recognition of some specific coding systems, Eli Zaretskii, 2015/02/25
- RE: Automatic recognition of some specific coding systems, Jürgen Hartmann, 2015/02/25
- Re: Automatic recognition of some specific coding systems, Eli Zaretskii, 2015/02/26
- RE: Automatic recognition of some specific coding systems, Jürgen Hartmann, 2015/02/26
- Re: Automatic recognition of some specific coding systems,
Eli Zaretskii <=
Re: Automatic recognition of some specific coding systems, Yuri Khan, 2015/02/26