]> git.ipfire.org Git - thirdparty/git.git/commit
git-gui: assure -eofchar {} on all channels
authorMark Levedahl <mlevedahl@gmail.com>
Wed, 21 May 2025 21:38:10 +0000 (17:38 -0400)
committerMark Levedahl <mlevedahl@gmail.com>
Tue, 22 Jul 2025 16:32:58 +0000 (12:32 -0400)
commit847c8a2ec4e9504fd112be263c261f2ea2690444
tree6617769def39108b6c7336ab70097c5895b93dbf
parent436dad00c5a717d56bf4feb8a1f5d39126579fe6
git-gui: assure -eofchar {} on all channels

Per 6eb420ef61 ("git-gui: Always disable the Tcl EOF character when
reading", 2007-07-17), git-gui should disable Tcl's EOF character
detection on all files when on Windows: the default is disabled on all
other platforms (and with Tcl 9.0, is disabled on Windows too).  This
EOF character is for compatibility with files / applications written for
file systems that know only the disc sectors allocated, and not the
number of bytes used.  This has nothing to do with git.

But, git-gui does not set -eofchar {} on all channels.  To avoid any
further leakage, let's just add this to the Windows specific override of
open.  This override is needed only as long as Tcl 8.x is in use (Tcl
9.0 makes -eofchar {} default on all platforms).

Signed-off-by: Mark Levedahl <mlevedahl@gmail.com>
git-gui.sh
lib/blame.tcl
lib/checkout_op.tcl
lib/commit.tcl
lib/diff.tcl
lib/spellcheck.tcl