From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Cyrillic VC Git commit messages
Date: Fri, 21 Nov 2014 17:28:30 +0200 [thread overview]
Message-ID: <83y4r4374x.fsf@gnu.org> (raw)
In-Reply-To: <546F4E7B.4010304@gmail.com>
> From: Nikolay Kudryavtsev <nikolay.kudryavtsev@gmail.com>
> Date: Fri, 21 Nov 2014 17:38:51 +0300
>
> > Could you give a pointer to that place?
>
> It's mentioned here. <https://github.com/msysgit/msysgit/wiki/Git-for-Windows-Unicode-Support#Disable_commit_message_transcoding> Couldn't find a more elaborate explanation.
I see nothing there that says it's a feature. I don't even see there
a confirmation that output is always in UTF-8. Can you tell how you
decided that, or where did you see that described?
Do I understand correctly that you see Cyrillic text encoded
differently when it is sent to Emacs and to the cmd.exe window? And
it sends codepage 1252 (not 1251) to the cmd.exe window?
Moreover, you seem to say that Git outputs in UTF-8 even though you
customized i18n.logoutputencoding to be windows-1251? That'd be a
real bug in Git. How about asking about that on the msysgit mailing
list?
This message:
http://osdir.com/ml/msysgit/2009-11/msg00140.html
seems to say that the problem disappears if you use --no-pager, so
maybe the bug is in Less? There are some suggestions to play with the
value of the environment variable LESSCHARSET.
(This information might be obsolete with the current versions of
msysgit.)
> VC does is not using process-coding-system-alist at all. vc-git-commits-coding-system is used instead.
That's not true. First, vc-git-commits-coding-system is used only in
2 commands in vc-git; others use process-coding-system-alist. More
importantly, even those 2 commands bind only one of the coding
systems, the other is determined by process-coding-system-alist.
Not sure this helps you, though.
Anyway, if nothing else works for you, modify vc-git.el to use 2
variables instead of just one for input and output of logs, then you
can give each variable the value you need.
next prev parent reply other threads:[~2014-11-21 15:28 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-21 4:30 Cyrillic VC Git commit messages Nikolay Kudryavtsev
2014-11-21 8:41 ` Eli Zaretskii
2014-11-21 13:21 ` Nikolay Kudryavtsev
2014-11-21 14:06 ` Eli Zaretskii
2014-11-21 14:38 ` Nikolay Kudryavtsev
2014-11-21 15:28 ` Eli Zaretskii [this message]
2014-11-21 16:48 ` Nikolay Kudryavtsev
2014-11-22 13:42 ` Eli Zaretskii
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=83y4r4374x.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=help-gnu-emacs@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.