all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Nikolay Kudryavtsev <nikolay.kudryavtsev@gmail.com>
To: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: Cyrillic VC Git commit messages
Date: Fri, 21 Nov 2014 07:30:06 +0300	[thread overview]
Message-ID: <546EBFCE.5010602@gmail.com> (raw)

Hi all.

Sometimes I work with projects that have Russian commit messages in the 
git log.

I've found a way to make them work, but it's kind of counter-intuitive. 
First you set
(setq vc-git-commits-coding-system 'windows-1251))
And then in .gitconfig:
[i18n]
logoutputencoding = windows-1251

This works fine inside of emacs, but totally breaks git log in windows 
cmd. For some reason git always expects windows-1251(system default) for 
input, but outputs windows-1252 to cmd.exe and utf-8 to emacs.

So, did I miss something?  Is there another way?

-- 
Best Regards,
Nikolay Kudryavtsev




             reply	other threads:[~2014-11-21  4:30 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-21  4:30 Nikolay Kudryavtsev [this message]
2014-11-21  8:41 ` Cyrillic VC Git commit messages 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
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=546EBFCE.5010602@gmail.com \
    --to=nikolay.kudryavtsev@gmail.com \
    --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.