From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Cyrillic VC Git commit messages Date: Fri, 21 Nov 2014 10:41:24 +0200 Message-ID: <83vbm93pzf.fsf@gnu.org> References: <546EBFCE.5010602@gmail.com> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1416559319 9746 80.91.229.3 (21 Nov 2014 08:41:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 21 Nov 2014 08:41:59 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Nov 21 09:41:54 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Xrjmr-0000tV-2C for geh-help-gnu-emacs@m.gmane.org; Fri, 21 Nov 2014 09:41:53 +0100 Original-Received: from localhost ([::1]:39153 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xrjmq-0006Q6-JB for geh-help-gnu-emacs@m.gmane.org; Fri, 21 Nov 2014 03:41:52 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33852) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrjmW-0006Pb-9l for help-gnu-emacs@gnu.org; Fri, 21 Nov 2014 03:41:38 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XrjmQ-0004GO-Cu for help-gnu-emacs@gnu.org; Fri, 21 Nov 2014 03:41:32 -0500 Original-Received: from mtaout28.012.net.il ([80.179.55.184]:44130) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrjmQ-0004GD-5R for help-gnu-emacs@gnu.org; Fri, 21 Nov 2014 03:41:26 -0500 Original-Received: from conversion-daemon.mtaout28.012.net.il by mtaout28.012.net.il (HyperSendmail v2007.08) id <0NFD00800RZGK600@mtaout28.012.net.il> for help-gnu-emacs@gnu.org; Fri, 21 Nov 2014 10:38:50 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout28.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NFD006L7S0Q1N20@mtaout28.012.net.il> for help-gnu-emacs@gnu.org; Fri, 21 Nov 2014 10:38:50 +0200 (IST) In-reply-to: <546EBFCE.5010602@gmail.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.184 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:101096 Archived-At: > From: Nikolay Kudryavtsev > 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))