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 17:28:30 +0200 Message-ID: <83y4r4374x.fsf@gnu.org> References: <546EBFCE.5010602@gmail.com> <83vbm93pzf.fsf@gnu.org> <546F3C58.30603@gmail.com> <831tow4pir.fsf@gnu.org> <546F4E7B.4010304@gmail.com> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1416583747 17093 80.91.229.3 (21 Nov 2014 15:29:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 21 Nov 2014 15:29:07 +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 16:29:02 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 1Xrq8r-00016r-S0 for geh-help-gnu-emacs@m.gmane.org; Fri, 21 Nov 2014 16:29:02 +0100 Original-Received: from localhost ([::1]:41133 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xrq8r-0007lv-7S for geh-help-gnu-emacs@m.gmane.org; Fri, 21 Nov 2014 10:29:01 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34809) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xrq8d-0007lb-86 for help-gnu-emacs@gnu.org; Fri, 21 Nov 2014 10:28:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xrq8X-0005T4-T1 for help-gnu-emacs@gnu.org; Fri, 21 Nov 2014 10:28:47 -0500 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:35557) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xrq8X-0005Sf-Kq for help-gnu-emacs@gnu.org; Fri, 21 Nov 2014 10:28:41 -0500 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0NFE00B00ACEDD00@a-mtaout21.012.net.il> for help-gnu-emacs@gnu.org; Fri, 21 Nov 2014 17:28:40 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NFE00B2YAZQED00@a-mtaout21.012.net.il> for help-gnu-emacs@gnu.org; Fri, 21 Nov 2014 17:28:39 +0200 (IST) In-reply-to: <546F4E7B.4010304@gmail.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.169 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:101107 Archived-At: > From: Nikolay Kudryavtsev > Date: Fri, 21 Nov 2014 17:38:51 +0300 > > > Could you give a pointer to that place? > > It's mentioned here. 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.