GNU bug report logs -
#79024
31.0.50; Multiple working trees support for VC
Previous Next
Reported by: Sean Whitton <spwhitton <at> spwhitton.name>
Date: Tue, 15 Jul 2025 11:51:02 UTC
Severity: normal
Merged with 79104
Found in version 31.0.50
Done: Sean Whitton <spwhitton <at> spwhitton.name>
Bug is archived. No further changes may be made.
Full log
Message #181 received at 79024 <at> debbugs.gnu.org (full text, mbox):
> From: Sean Whitton <spwhitton <at> spwhitton.name>
> Cc: dmitry <at> gutov.dev, 79024 <at> debbugs.gnu.org
> Date: Thu, 14 Aug 2025 15:03:37 +0100
>
> Do you know of any reason we couldn't refactor things in vc-git.el like
> this? It would reduce complexity a fair bit.
The problem here is that coding-system-for-write is used for two
purposes: (1) to encode the command-line arguments of a program we are
about to run, and (2) to encode any text we send to the program. And
on Windows we must use two different encodings: command-line arguments
must be encoded with the system codepage, whereas Git prefers its
input and output to be encoded in UTF-8.
Binding coding-system-for-write to locale-coding-system in
vc-git-command basically overrides any encoding forced by the callers,
including by users (if the type "C-x RET c SOMETHING RET" when
invoking VC commands).
So unfortunately, I think this complexity is needed.
This bug report was last modified 5 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.