From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nikolay Kudryavtsev Newsgroups: gmane.emacs.bugs Subject: bug#23076: 24.5; vc-git: add a new variable for log output coding system Date: Mon, 21 Mar 2016 14:51:15 +0300 Message-ID: <56EFE033.7080900@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------040707000502010602020305" X-Trace: ger.gmane.org 1458561573 30883 80.91.229.3 (21 Mar 2016 11:59:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Mar 2016 11:59:33 +0000 (UTC) To: 23076@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 21 12:59:25 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 1ahyUT-0005yP-O0 for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Mar 2016 12:59:21 +0100 Original-Received: from localhost ([::1]:57153 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahyUT-0007uf-9t for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Mar 2016 07:59:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60839) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahyUG-0007u3-E5 for bug-gnu-emacs@gnu.org; Mon, 21 Mar 2016 07:59:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ahyUA-0003Wj-MN for bug-gnu-emacs@gnu.org; Mon, 21 Mar 2016 07:59:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59163) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahyUA-0003WU-Fs for bug-gnu-emacs@gnu.org; Mon, 21 Mar 2016 07:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ahyUA-0002Oj-9Y for bug-gnu-emacs@gnu.org; Mon, 21 Mar 2016 07:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Nikolay Kudryavtsev Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 21 Mar 2016 11:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 23076 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14585614949158 (code B ref -1); Mon, 21 Mar 2016 11:59:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Mar 2016 11:58:14 +0000 Original-Received: from localhost ([127.0.0.1]:56290 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ahyTO-0002Ne-Er for submit@debbugs.gnu.org; Mon, 21 Mar 2016 07:58:14 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40860) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ahyTM-0002NS-RP for submit@debbugs.gnu.org; Mon, 21 Mar 2016 07:58:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ahySk-0002yo-JS for submit@debbugs.gnu.org; Mon, 21 Mar 2016 07:58:07 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:36543) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahySk-0002yj-FX for submit@debbugs.gnu.org; Mon, 21 Mar 2016 07:57:34 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58750) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahyPv-0005xE-0A for bug-gnu-emacs@gnu.org; Mon, 21 Mar 2016 07:57:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ahyMu-0001TH-SG for bug-gnu-emacs@gnu.org; Mon, 21 Mar 2016 07:54:38 -0400 Original-Received: from mail-lf0-x241.google.com ([2a00:1450:4010:c07::241]:35290) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahyMu-0001T8-IF for bug-gnu-emacs@gnu.org; Mon, 21 Mar 2016 07:51:32 -0400 Original-Received: by mail-lf0-x241.google.com with SMTP id g73so3499288lfg.2 for ; Mon, 21 Mar 2016 04:51:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:message-id:date:user-agent:mime-version; bh=GtQW9UVBBccsdiyD6TzvKPkqUtO1/NSIzzNJBhWo3nA=; b=sxVS8Cx51OGcODiOE6GpMoTHS9EYcUsE5heSVDJrqnnrQfrgJekPhd/OmyVgCMR7M5 JHAx+amDa/4lsSx+fAuuaQiTnNi8lDaf5uqt8IlBF+3Zjm0vhM4xLwRhVcw2kIHYnOdc VoIGaWGX/SulZMC1OzoW+O+wRVEaj+MY2xQ3Z0C0B8uM33yU38NBmNaLaeC9vRYRZnA7 X8ZeZLC7ibJ/5ddJmRD7limkaQLi+llT4Mhlf0PqlSfITTKw5+3lOSNqhigWH7mhda7i jFtUGJisVtnvTosuRrE2jthCoW6XI9WEyO49GBPrc+wkzRKXRbOhoCWyZZu2BcYRG/NR Nq0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:message-id:date:user-agent :mime-version; bh=GtQW9UVBBccsdiyD6TzvKPkqUtO1/NSIzzNJBhWo3nA=; b=jJzafs7fkJI2fKYm0WJ+z3T+5Up6rAShM44BUAZB1S3c1MUJR8vTO26uceYyTSLu1A gB9ngLp90VAtilxkkD2TmbH+ZHSgWYK3F1UUZd7dW9npM8ou8d/ARJKsnYi2mm805D5I 2M0wf//mbWN088ligkuJViYqq96CsDyAuYdcwZBDxh5vyOO2zpHSZbI4ti2tY4wD9F8L UY0ZKmD3znRaNYIVBAoknWB/Se68nhN/rXOATz+fi9JFc7z4cH1V1M8ydmL/qxazXZK9 vmM7W/YPwDN8LGbgxQDTbVVFhi3V8sbw6ovGAKveulAUXAqF7o1I2JlwPzWd1ASi2yQb YERw== X-Gm-Message-State: AD7BkJL8bOVfNjWUjP33Vq+qDDSB/B9749h5Z61Z0UZyCOhovHJHb5OIrOkCuTQOYNHPvQ== X-Received: by 10.25.83.138 with SMTP id h132mr10723117lfb.7.1458561091585; Mon, 21 Mar 2016 04:51:31 -0700 (PDT) Original-Received: from [192.168.199.2] (broadband-95-84-209-126.nationalcablenetworks.ru. [95.84.209.126]) by smtp.gmail.com with ESMTPSA id xg1sm4389933lbb.10.2016.03.21.04.51.30 for (version=TLSv1/SSLv3 cipher=OTHER); Mon, 21 Mar 2016 04:51:30 -0700 (PDT) X-Google-Original-From: Nikolay Kudryavtsev User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:115221 Archived-At: This is a multi-part message in MIME format. --------------040707000502010602020305 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit This is a feature request that depends on resolution of 23075 . Git for windows expects one coding system for log input, but returns a different one in log output. In my specific example, with Russian language, I have to set up vc-git-commits-coding-system to windows-1251. But then, log output would still be in utf-8. Of course I can change this by setting git variable logoutputencoding, but this would screw up command line git log output. See this thread on help-gnu-emacs and this thread on Git for Windows google group for more details. So, I propose adding another variable called vc-git-log-output-coding-system, that would serve as emacs counterpart to git's logoutputencoding, just as vc-git-commits-coding-system serves a counterpart to commitencoding. When and if 23075 is fixed we can just set coding-system-for-read to this new variable(whenever it's set) in vc-git-print-log. -- Best Regards, Nikolay Kudryavtsev --------------040707000502010602020305 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit This is a feature request that depends on resolution of 23075.

Git for windows expects one coding system for log input, but returns a different one in log output.

In my specific example, with Russian language, I have to set up vc-git-commits-coding-system to windows-1251. But then, log output would still be in utf-8. Of course I can change this by setting git variable logoutputencoding, but this would screw up command line git log output. See this thread on help-gnu-emacs and this thread on Git for Windows google group for more details.

So, I propose adding another variable called vc-git-log-output-coding-system, that would serve as emacs counterpart to git's logoutputencoding, just as vc-git-commits-coding-system serves a counterpart to commitencoding.

When and if 23075 is fixed we can just set coding-system-for-read to this new variable(whenever it's set) in vc-git-print-log.
-- 
Best Regards,
Nikolay Kudryavtsev
--------------040707000502010602020305--