From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#23076: 24.5; vc-git: add a new variable for log output coding system Date: Sat, 02 Apr 2016 13:16:20 +0300 Message-ID: <83fuv4s4cr.fsf@gnu.org> References: <56EFE033.7080900@gmail.com> <56F04527.6010901@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1459592238 17514 80.91.229.3 (2 Apr 2016 10:17:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 2 Apr 2016 10:17:18 +0000 (UTC) Cc: 23076@debbugs.gnu.org To: Nikolay Kudryavtsev Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Apr 02 12:17:08 2016 Return-path: Envelope-to: geb-bug-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 1amIc7-0007DO-M9 for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Apr 2016 12:17:07 +0200 Original-Received: from localhost ([::1]:48816 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amIc6-0002g9-NI for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Apr 2016 06:17:06 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52906) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amIc3-0002ft-W7 for bug-gnu-emacs@gnu.org; Sat, 02 Apr 2016 06:17:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1amIc3-0003n8-0d for bug-gnu-emacs@gnu.org; Sat, 02 Apr 2016 06:17:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50677) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amIc2-0003n4-Tx for bug-gnu-emacs@gnu.org; Sat, 02 Apr 2016 06:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1amIc2-0007W9-Bv for bug-gnu-emacs@gnu.org; Sat, 02 Apr 2016 06:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 02 Apr 2016 10:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23076 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23076-submit@debbugs.gnu.org id=B23076.145959222128887 (code B ref 23076); Sat, 02 Apr 2016 10:17:02 +0000 Original-Received: (at 23076) by debbugs.gnu.org; 2 Apr 2016 10:17:01 +0000 Original-Received: from localhost ([127.0.0.1]:47804 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1amIc1-0007Vr-2K for submit@debbugs.gnu.org; Sat, 02 Apr 2016 06:17:01 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33678) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1amIc0-0007Ve-1z for 23076@debbugs.gnu.org; Sat, 02 Apr 2016 06:17:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1amIbr-0003lk-Os for 23076@debbugs.gnu.org; Sat, 02 Apr 2016 06:16:54 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:37079) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amIbr-0003lg-Kv; Sat, 02 Apr 2016 06:16:51 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4629 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1amIbq-0004p2-Vs; Sat, 02 Apr 2016 06:16:51 -0400 In-reply-to: <56F04527.6010901@gmail.com> (message from Nikolay Kudryavtsev on Mon, 21 Mar 2016 22:01:59 +0300) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:115865 Archived-At: > From: Nikolay Kudryavtsev > Date: Mon, 21 Mar 2016 22:01:59 +0300 > > 1. (setq vc-git-commits-coding-system 'windows-1251) > 2. Clone https://github.com/sg2002/vc-git-bugs > 3. Run vc-log on it. This would give you broken output. > 4. Evaluate the whole fix.el file from the repo. > 5. Run vc-log again. Now you would get the proper "Русскоязычный > коммит." in it. (By "vc-log", I presume you meant "C-x v l". There's no vc-log command, AFAICT.) Please try the latest emacs-25 branch in the Emacs repository and tell which problems for this bug remain. I actually don't understand the reasons for the 1st step above: the log message is reported by Git in UTF-8, so if I avoid the first step, then step 3 produces the correct output. > Adding a new variable is the only way to setup git with Russian commit > logs on Windows, while fulfilling all three of the following requirements: > 1. Committing from Emacs in Russian should work. > 2. vc-log should work in Emacs. > 3. git log should work outside of Emacs. So if any problems remain, they are either in 1. Committing from Emacs in Russian should work. or in 3. git log should work outside of Emacs. Please tell which one(s) of these don't work, and why. I tried "git log" outside of Emacs, and it produced UTF-8 output. If it doesn't do that for you, perhaps you've customized Git itself? If so, what happens if you remove that customization? As for committing from Emacs in Russian, that should again work if you use UTF-8, so I'm unsure what problems prevent you from having that. Thanks.