--- Begin Message ---
Subject: |
Decoding broken by sequence ESC comma |
Date: |
Sun, 05 Jun 2016 22:13:08 +0300 |
This bug can be reproduced at least on 24.5 and the current 25 pretest
at the time of this writing.
The occurrence of the sequence of the bytes 1B 2C (ASCII ESC and comma)
messes up Emacs's decoding of an ASCII file from that point on.
This doesn't happen in any other text-displaying application I tested,
including a terminal emulator (given it's an escape sequence and all).
Concrete steps to reproduce:
$ printf 'foo\033,bar' > tmp.txt
$ emacs -q tmp.txt
Expected result:
A buffer displaying "foo^[,bar".
Actual result:
A buffer displaying "fooáò".
Taylan
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#23701: Decoding broken by sequence ESC comma |
Date: |
Mon, 06 Jun 2016 18:07:43 +0300 |
> From: address@hidden (Taylan Ulrich Bayırlı/Kammer)
> Cc: address@hidden, address@hidden
> Date: Mon, 06 Jun 2016 16:17:42 +0300
>
> Eli Zaretskii <address@hidden> writes:
>
> > ISO 2022 and its derivatives are widely used in Far Eastern regions,
> > so I don't see how can we stop supporting it.
>
> Fair enough. I would think this bug report can be closed then.
Thanks, done.
For the record, the way to prevent unwanted decoding in these cases is
one of:
. Add a 'coding' cookie to the file
. Precede "C-x C-f" with "C-x RET c us-ascii RET"
. "C-x RET r us-ascii RET", like you did.
--- End Message ---