From: Eli Zaretskii <eliz@gnu.org>
To: npostavs@users.sourceforge.net
Cc: 25288@debbugs.gnu.org, fvamail@gmail.com
Subject: bug#25288: 25.1; term, ansi-term, broken output of utf8 text
Date: Thu, 29 Dec 2016 18:06:27 +0200 [thread overview]
Message-ID: <834m1mvhx8.fsf@gnu.org> (raw)
In-Reply-To: <87inq38nq8.fsf@users.sourceforge.net> (npostavs@users.sourceforge.net)
> From: npostavs@users.sourceforge.net
> Cc: 25288@debbugs.gnu.org, fvamail@gmail.com
> Date: Wed, 28 Dec 2016 21:37:19 -0500
>
> > If you know the encoding of the byte stream (and term.el must, since
> > it evidently decodes it later on), then you could probably use
> > char-charset, after decoding: if you get 'eight-bit, then you've got
> > incomplete byte sequence. But I didn't try that.
>
> That should work at least for encodings like utf-8 for which undecoded
> bytes are not ascii. I guess parsing of escape codes would only work on
> such encodings anyway, so it should be fine. Patch attached.
LGTM, thanks.
next prev parent reply other threads:[~2016-12-29 16:06 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-28 10:41 bug#25288: 25.1; term, ansi-term, broken output of utf8 text Vjacheslav
2016-12-28 19:10 ` npostavs
2016-12-28 19:31 ` Eli Zaretskii
2016-12-29 2:37 ` npostavs
2016-12-29 16:06 ` Eli Zaretskii [this message]
2017-01-03 14:05 ` npostavs
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=834m1mvhx8.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=25288@debbugs.gnu.org \
--cc=fvamail@gmail.com \
--cc=npostavs@users.sourceforge.net \
/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.