all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: taylanbayirli@gmail.com (Taylan Ulrich Bayırlı/Kammer)
To: 23701@debbugs.gnu.org
Subject: bug#23701: Decoding broken by sequence ESC comma
Date: Sun, 05 Jun 2016 22:13:08 +0300	[thread overview]
Message-ID: <878tyja1q3.fsf@T420.taylan> (raw)

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





             reply	other threads:[~2016-06-05 19:13 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-05 19:13 Taylan Ulrich Bayırlı/Kammer [this message]
2016-06-05 19:59 ` bug#23701: Decoding broken by sequence ESC comma Andreas Schwab
2016-06-05 22:35   ` Taylan Ulrich Bayırlı/Kammer
2016-06-06  2:33     ` Eli Zaretskii
2016-06-06 13:17       ` Taylan Ulrich Bayırlı/Kammer
2016-06-06 15:07         ` Eli Zaretskii
2016-06-06  7:27     ` Andreas Schwab

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=878tyja1q3.fsf@T420.taylan \
    --to=taylanbayirli@gmail.com \
    --cc=23701@debbugs.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.