From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Juanma Barranquero <lekktu@gmail.com>
Cc: Emacs Bug Tracker <submit@emacsbugs.donarmstrong.com>,
2741@emacsbugs.donarmstrong.com
Subject: bug#2741: Mixed UTF-8 and raw bytes in output of vc-annotate after (set-language-environment "UTF-8")
Date: Sat, 21 Mar 2009 21:23:16 -0400 [thread overview]
Message-ID: <jwvk56is68x.fsf-monnier+emacsbugreports@gnu.org> (raw)
In-Reply-To: <f7ccd24b0903211623i58b2c88ek9ff252b0dac0b@mail.gmail.com> (Juanma Barranquero's message of "Sun, 22 Mar 2009 00:23:32 +0100")
> 4) Finally, after unsetting LANG or not (it is irrelevant) do
> emacs -Q --eval "(set-language-environment \"UTF-8\")" test.txt -f
> vc-annotate
> Now the *Annotate* buffer is in `utf-8-dos', but contains a mixture
> of utf-8 and raw bytes:
> ^7fb00c1 (Juanma Barranquero 2009-03-22 00:01:39 +0100 1) A few
> Spanish characters: \341\351\355\363\372\374\361
I don't see a mixture of anything, I just see latin-1 encoded chars
decoded incorrectly because Emacs somehow decided to try and decode the
stream using the utf-8 coding-system.
But yes that's a bug. `vc-annotate' should use the main file's
coding-system to decode the annotated text, regardless of
language environment.
Stefan
next prev parent reply other threads:[~2009-03-22 1:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <f7ccd24b0909110402t5bf8123dh6104f26a17a9c3b8@mail.gmail.com>
2009-03-21 23:23 ` bug#2741: Mixed UTF-8 and raw bytes in output of vc-annotate after (set-language-environment "UTF-8") Juanma Barranquero
2009-03-22 1:23 ` Stefan Monnier [this message]
2009-03-22 1:31 ` Juanma Barranquero
2009-09-09 23:18 ` Juanma Barranquero
2009-09-11 11:10 ` bug#2741: marked as done (Decoding of vc-annotate output affected by language environment) Emacs bug Tracking System
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvk56is68x.fsf-monnier+emacsbugreports@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=2741@emacsbugs.donarmstrong.com \
--cc=lekktu@gmail.com \
--cc=submit@emacsbugs.donarmstrong.com \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).