GNU bug report logs -
#11694
24.1; in-is13194-devanagari with \200
Previous Next
Reported by: starback <at> stp.lingfil.uu.se (Per Starbäck)
Date: Wed, 13 Jun 2012 14:32:01 UTC
Severity: normal
Tags: fixed
Found in versions 24.2, 24.1
Fixed in version 24.3
Done: npostavs <at> users.sourceforge.net
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 11694 in the body.
You can then email your comments to 11694 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#11694
; Package
emacs
.
(Wed, 13 Jun 2012 14:32:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
starback <at> stp.lingfil.uu.se (Per Starbäck)
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Wed, 13 Jun 2012 14:32:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
In GNU Emacs 24.1.1 (i686-pc-linux-gnu, GTK+ Version 2.18.9)
value of $LANG: en_US.utf8
locale-coding-system: utf-8-unix
$ echo -e 'Sm\xf6rg\xe5sbord' >test1.txt
When opened by Emacs that file is detected correctly as being
Latin-1.
$ echo -e 'Sm\xf6rg\xe5sbord \x805' >test2.txt
Here I add a price of 5 Euro for the Smorgasbord, written with
Microsoft's windows-1252 (which is very similar to latin-1).
With Emacs 23 this test2.txt is opened as raw-text-unix which is OK
I guess. (Detecting windows-1252 correctly isn't that easy.)
But now, with Emacs 24, it is opened as in-is13194-devanagari-unix which
surprises me. I think this is a bug. The problem is that \xe5 is shown
as "\200" then anyway. Why guess a coding which doesn't make sense of
all the characters? And if we really want to guess something even if it
doesn't make sense of that character, why prefer this to Latin-1 which
makes sense of the same part of the input and which was preferrable if
the "strange" part didn't exist?
I don't know where this change comes from. "C-h C" shows the same
"Priority order for recognizing coding systems when reading files" as I
had in 23.4, starting
Priority order for recognizing coding systems when reading files:
1. utf-8 (alias: mule-utf-8)
2. iso-2022-7bit
3. iso-latin-1 (alias: iso-8859-1 latin-1)
4. iso-2022-7bit-lock (alias: iso-2022-int-1)
5. iso-2022-8bit-ss2
6. emacs-mule
7. raw-text
8. iso-2022-jp (alias: junet)
9. in-is13194-devanagari (alias: devanagari)
windows-1252 isn't there at all, so of course I can't detect that.
(Maybe it ought to be there somewhere, but that's another issue in that
case.)
After
(set-coding-system-priority 'windows-1252)
(set-coding-system-priority 'in-is13194-devanagari)
so that windows-1252 is recognized, but in-is13194-devanagari is
preferred, test2.txt still detects as in-is13194-devanagari, even though
there now is is a possiblity that makes sense of all characters.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#11694
; Package
emacs
.
(Fri, 08 Jul 2016 23:12:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 11694 <at> debbugs.gnu.org (full text, mbox):
found 11694 24.2
tags 11694 fixed
close 11694 24.3
quit
starback <at> stp.lingfil.uu.se (Per Starbäck) writes:
> In GNU Emacs 24.1.1 (i686-pc-linux-gnu, GTK+ Version 2.18.9)
> $ echo -e 'Sm\xf6rg\xe5sbord \x805' >test2.txt
>
> Here I add a price of 5 Euro for the Smorgasbord, written with
> Microsoft's windows-1252 (which is very similar to latin-1).
>
> With Emacs 23 this test2.txt is opened as raw-text-unix which is OK
> I guess. (Detecting windows-1252 correctly isn't that easy.)
With Emacs 24.3 it's detected as raw-text-unix again.
>
> After
> (set-coding-system-priority 'windows-1252)
> (set-coding-system-priority 'in-is13194-devanagari)
And it's correctly recognized as windows-1252 after doing this.
bug Marked as found in versions 24.2.
Request was from
npostavs <at> users.sourceforge.net
to
control <at> debbugs.gnu.org
.
(Fri, 08 Jul 2016 23:12:02 GMT)
Full text and
rfc822 format available.
Added tag(s) fixed.
Request was from
npostavs <at> users.sourceforge.net
to
control <at> debbugs.gnu.org
.
(Fri, 08 Jul 2016 23:12:02 GMT)
Full text and
rfc822 format available.
bug marked as fixed in version 24.3, send any further explanations to
11694 <at> debbugs.gnu.org and starback <at> stp.lingfil.uu.se (Per Starbäck)
Request was from
npostavs <at> users.sourceforge.net
to
control <at> debbugs.gnu.org
.
(Fri, 08 Jul 2016 23:12:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 06 Aug 2016 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 9 years and 32 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.