From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#24953: 25.1; Possible inefficiency in UTF-8 Date: Mon, 21 Nov 2016 05:32:34 +0200 Message-ID: <83twb18q3x.fsf@gnu.org> References: <83vavnflg9.fsf@gnu.org> <83eg2bfc51.fsf@gnu.org> <83bmxffaev.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1479699196 2301 195.159.176.226 (21 Nov 2016 03:33:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 21 Nov 2016 03:33:16 +0000 (UTC) Cc: 24953@debbugs.gnu.org To: Eli Barzilay Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 21 04:33:12 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c8fLz-000839-Dw for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Nov 2016 04:33:11 +0100 Original-Received: from localhost ([::1]:47169 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c8fM2-0000M4-P8 for geb-bug-gnu-emacs@m.gmane.org; Sun, 20 Nov 2016 22:33:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52030) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c8fLt-0000KL-6m for bug-gnu-emacs@gnu.org; Sun, 20 Nov 2016 22:33:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c8fLq-0004UY-1e for bug-gnu-emacs@gnu.org; Sun, 20 Nov 2016 22:33:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49397) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c8fLp-0004US-UY for bug-gnu-emacs@gnu.org; Sun, 20 Nov 2016 22:33:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1c8fLp-0001TS-Nv for bug-gnu-emacs@gnu.org; Sun, 20 Nov 2016 22:33:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 21 Nov 2016 03:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24953 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24953-submit@debbugs.gnu.org id=B24953.14796991555632 (code B ref 24953); Mon, 21 Nov 2016 03:33:01 +0000 Original-Received: (at 24953) by debbugs.gnu.org; 21 Nov 2016 03:32:35 +0000 Original-Received: from localhost ([127.0.0.1]:36563 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c8fLO-0001Sl-Qe for submit@debbugs.gnu.org; Sun, 20 Nov 2016 22:32:35 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:60977) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c8fLM-0001SX-Bq for 24953@debbugs.gnu.org; Sun, 20 Nov 2016 22:32:32 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c8fLE-0004PQ-3a for 24953@debbugs.gnu.org; Sun, 20 Nov 2016 22:32:27 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38920) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c8fLE-0004PM-0n; Sun, 20 Nov 2016 22:32:24 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2545 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1c8fLD-0000J0-AC; Sun, 20 Nov 2016 22:32:23 -0500 In-reply-to: (message from Eli Barzilay on Sun, 20 Nov 2016 17:32:07 -0500) 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" Xref: news.gmane.org gmane.emacs.bugs:125934 Archived-At: > From: Eli Barzilay > Date: Sun, 20 Nov 2016 17:32:07 -0500 > Cc: 24953@debbugs.gnu.org > > On Wed, Nov 16, 2016 at 3:16 PM, Eli Zaretskii wrote: > >> > >> >> (I originally thought that all it gets me is a default encoding for > >> >> non-ascii files...) > >> > > >> > You could customize just that, then. > >> > >> Using `prefer-coding-system'? Or something else? > > > > Using setq-default. > > Sorry for being thick, but which variable? buffer-file-coding-system > >> Doesn't that make sense if I almost always edit source code for > >> languages that use utf-8 to read sources? > > > > Languages that use utf-8 should already encode in utf-8 by default. > > Which ones don't? > > I can't reproduce any such problems so perhaps whatever made me add it > is no longer a problem... However, since I removed the UTF-8 language > setting on Windows I had one case which wasn't working right: I ran some > `git show ...` to look at a past change in a (utf-8 encoded) source > file; I ran it with `shell-command` and the resulting text that popped > up had some junk next to some non-ascii characters. I'm pretty sure > that I didn't have such an issue with the setting on. > > If this is not expected, I can try to get reproducible instructions. It isn't expected with Emacs 25.1, as it specifically sets up things assuming Git reports its data in UTF-8. Are you sure you didn't set i18n.commitEncoding in your Git configuration, or have some non-ASCII text encoded in something other than UTF-8 in that repository?