* VC to bind coding-system while invoking Git
@ 2014-11-17 16:50 Eli Zaretskii
2014-11-17 17:47 ` Andreas Schwab
0 siblings, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2014-11-17 16:50 UTC (permalink / raw)
To: emacs-devel
vc-git-command should bind coding-system-for-read/write to the value
of vc-git-commits-coding-system (utf-8 by default). Currently, we
only do that for a handful of Git commands, which is inconsistent.
The result is, for example, that typing RET in a *vc-change-log*
buffer might show the non-ASCII characters incorrectly if the default
for process-coding-system is not UTF-8.
Likewise with vc-git--call.
Any objections?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: VC to bind coding-system while invoking Git
2014-11-17 16:50 VC to bind coding-system while invoking Git Eli Zaretskii
@ 2014-11-17 17:47 ` Andreas Schwab
2014-11-17 19:01 ` Eli Zaretskii
0 siblings, 1 reply; 4+ messages in thread
From: Andreas Schwab @ 2014-11-17 17:47 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: emacs-devel
Eli Zaretskii <eliz@gnu.org> writes:
> vc-git-command should bind coding-system-for-read/write to the value
> of vc-git-commits-coding-system (utf-8 by default). Currently, we
> only do that for a handful of Git commands, which is inconsistent.
> The result is, for example, that typing RET in a *vc-change-log*
> buffer might show the non-ASCII characters incorrectly if the default
> for process-coding-system is not UTF-8.
It should also take i18n.commitEncoding and i18n.logOutputEncoding into
account.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: VC to bind coding-system while invoking Git
2014-11-17 17:47 ` Andreas Schwab
@ 2014-11-17 19:01 ` Eli Zaretskii
2014-11-21 10:29 ` Eli Zaretskii
0 siblings, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2014-11-17 19:01 UTC (permalink / raw)
To: Andreas Schwab; +Cc: emacs-devel
> From: Andreas Schwab <schwab@linux-m68k.org>
> Cc: emacs-devel@gnu.org
> Date: Mon, 17 Nov 2014 18:47:24 +0100
>
> Eli Zaretskii <eliz@gnu.org> writes:
>
> > vc-git-command should bind coding-system-for-read/write to the value
> > of vc-git-commits-coding-system (utf-8 by default). Currently, we
> > only do that for a handful of Git commands, which is inconsistent.
> > The result is, for example, that typing RET in a *vc-change-log*
> > buffer might show the non-ASCII characters incorrectly if the default
> > for process-coding-system is not UTF-8.
>
> It should also take i18n.commitEncoding and i18n.logOutputEncoding into
> account.
Any better way than to run "git config" querying about these 2 before
every git command?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: VC to bind coding-system while invoking Git
2014-11-17 19:01 ` Eli Zaretskii
@ 2014-11-21 10:29 ` Eli Zaretskii
0 siblings, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2014-11-21 10:29 UTC (permalink / raw)
To: schwab; +Cc: emacs-devel
> Date: Mon, 17 Nov 2014 21:01:59 +0200
> From: Eli Zaretskii <eliz@gnu.org>
> Cc: emacs-devel@gnu.org
>
> > From: Andreas Schwab <schwab@linux-m68k.org>
> > Cc: emacs-devel@gnu.org
> > Date: Mon, 17 Nov 2014 18:47:24 +0100
> >
> > Eli Zaretskii <eliz@gnu.org> writes:
> >
> > > vc-git-command should bind coding-system-for-read/write to the value
> > > of vc-git-commits-coding-system (utf-8 by default). Currently, we
> > > only do that for a handful of Git commands, which is inconsistent.
> > > The result is, for example, that typing RET in a *vc-change-log*
> > > buffer might show the non-ASCII characters incorrectly if the default
> > > for process-coding-system is not UTF-8.
> >
> > It should also take i18n.commitEncoding and i18n.logOutputEncoding into
> > account.
>
> Any better way than to run "git config" querying about these 2 before
> every git command?
I pushed a simple change to emacs-24 that just binds the encoding to
vc-git-commits-coding-system. I will work on a more complex solution
for the trunk.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-11-21 10:29 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-17 16:50 VC to bind coding-system while invoking Git Eli Zaretskii
2014-11-17 17:47 ` Andreas Schwab
2014-11-17 19:01 ` Eli Zaretskii
2014-11-21 10:29 ` Eli Zaretskii
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.