help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cyrillic VC Git commit messages


From: Eli Zaretskii
Subject: Re: Cyrillic VC Git commit messages
Date: Fri, 21 Nov 2014 10:41:24 +0200

> From: Nikolay Kudryavtsev <nikolay.kudryavtsev@gmail.com>
> Date: Fri, 21 Nov 2014 07:30:06 +0300
> 
> (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.

It's a missing feature in vc-git.el, see

  http://lists.gnu.org/archive/html/emacs-devel/2014-11/msg01274.html

and perhaps also a bug in git.

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

To work around, try this in your ~/.emacs:

  (add-to-list process-coding-system-alist
               '("[gG][iI][tT]" windows-1251 . utf-8))




reply via email to

[Prev in Thread] Current Thread [Next in Thread]