From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nikolay Kudryavtsev Newsgroups: gmane.emacs.help Subject: Re: Cyrillic VC Git commit messages Date: Fri, 21 Nov 2014 19:48:47 +0300 Message-ID: <546F6CEF.1090700@gmail.com> References: <546EBFCE.5010602@gmail.com> <83vbm93pzf.fsf@gnu.org> <546F3C58.30603@gmail.com> <831tow4pir.fsf@gnu.org> <546F4E7B.4010304@gmail.com> <83y4r4374x.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1416588590 29665 80.91.229.3 (21 Nov 2014 16:49:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 21 Nov 2014 16:49:50 +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 17:49:43 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 1XrrOw-00042r-0H for geh-help-gnu-emacs@m.gmane.org; Fri, 21 Nov 2014 17:49:42 +0100 Original-Received: from localhost ([::1]:41460 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrrOv-0007fe-LI for geh-help-gnu-emacs@m.gmane.org; Fri, 21 Nov 2014 11:49:41 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51108) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrrOV-0007WT-SE for help-gnu-emacs@gnu.org; Fri, 21 Nov 2014 11:49:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XrrOK-0007It-A9 for help-gnu-emacs@gnu.org; Fri, 21 Nov 2014 11:49:15 -0500 Original-Received: from mail-lb0-x236.google.com ([2a00:1450:4010:c04::236]:47193) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrrOK-0007In-2n for help-gnu-emacs@gnu.org; Fri, 21 Nov 2014 11:49:04 -0500 Original-Received: by mail-lb0-f182.google.com with SMTP id f15so3198334lbj.27 for ; Fri, 21 Nov 2014 08:49:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:message-id:date:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=yJ0a8rxtbbatfQjGBm0HJkFtxv48RLlQvkPJMRXCKos=; b=yJ9R2tcdkQnShtlokdMK9Gwg4cSq3jmpRGfA8QpzoY72z+YnngMXPaO4X3bJ39H+jE Nm48AxT7mIPd/79HMNOZOrk8/ACDg3eEpfRI1PB+X2T8fIv+x7BSg5DJVlFMJvqGY5rh m4JCe/+M9Vy+zvhjvHrCok7LVGhdb37BfU1Jecc/b+A0Qk8w5VG6/bwfpwWrkJUuGs/P OBS296WqNA7YW+Lp39TBeDYa2cB8lj11ltt0XZYwaigx5nr+3m8dCXuDfV46UWo/iilZ dg+i9joWpRFyh+fO35BJusJEapVx/M8bgJfjDMAtJI40oZqywgeB8yA5ZITNW5r0TojN 9bNw== X-Received: by 10.112.64.236 with SMTP id r12mr6171253lbs.3.1416588539354; Fri, 21 Nov 2014 08:48:59 -0800 (PST) Original-Received: from [127.0.0.1] (broadband-95-84-209-126.nationalcablenetworks.ru. [95.84.209.126]) by mx.google.com with ESMTPSA id x1sm1274208laa.20.2014.11.21.08.48.58 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 21 Nov 2014 08:48:58 -0800 (PST) X-Google-Original-From: Nikolay Kudryavtsev User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 In-Reply-To: <83y4r4374x.fsf@gnu.org> X-Antivirus: avast! (VPS 141121-0, 21.11.2014), Outbound message X-Antivirus-Status: Clean X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::236 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:101110 Archived-At: > Can you tell how you decided that, or where did you see that described? That part implies that there is some new functionality in msysgit that does the recoding for windows cmd.exe. > And it sends codepage 1252 (not 1251) to the cmd.exe window? It first decodes the message with logoutputencoding, then recodes it with windows-1252. If you set logoutputencoding to windows-1251, like I do, it breaks cmd.exe output. > Moreover, you seem to say that Git outputs in UTF-8 even though you > customized i18n.logoutputencoding to be windows-1251? For vc log the second encoding with windows-1252 does not happen. For the commit message, git first recodes from windows-1251 to utf-8 and then recodes to commitencoding. This behavior is shared when called from VC and cmd.exe. > First, vc-git-commits-coding-system is used only in 2 commands in vc-git Yeah, but that's exactly the two commands we care about here. It sets coding-system-for-read for log and coding-system-for-write for commit message > modify vc-git.el to use 2 variables Thought about doing this, but first decided to see if I can get any help. Those git "hooks" do weird things to say the least. -- Best Regards, Nikolay Kudryavtsev