]> git.ipfire.org Git - thirdparty/git.git/commitdiff
git-gui: replace encoding binary with iso8859-1
authorMark Levedahl <mlevedahl@gmail.com>
Thu, 22 May 2025 17:33:00 +0000 (13:33 -0400)
committerMark Levedahl <mlevedahl@gmail.com>
Tue, 22 Jul 2025 16:32:58 +0000 (12:32 -0400)
git-gui currently configures some channels as '-encoding binary' when
the channel is not really binary (e.g, the channel is consumed as lines
of text).  In 8.6, '-encoding binary' is an alias for '-encoding
iso8859), but TIP 699 removes this alias for Tcl 9.0. Let's switch to
'-encoding iso8859-1' to be compatible across Tcl versions.

Signed-off-by: Mark Levedahl <mlevedahl@gmail.com>
lib/blame.tcl
lib/commit.tcl

index e51a820b128499c1a17d203bcf9ea43e3c4bf7b8..bb67b047eb558375de2af65717cd36072d6688dd 100644 (file)
@@ -985,7 +985,7 @@ method _showcommit {cur_w lno} {
                        set msg {}
                        catch {
                                set fd [git_read [list cat-file commit $cmit]]
-                               fconfigure $fd -encoding binary -translation lf
+                               fconfigure $fd -encoding iso8859-1 -translation lf
                                # By default commits are assumed to be in utf-8
                                set enc utf-8
                                while {[gets $fd line] > 0} {
index d6313e568b2bad381f4f1d1f60c06b66f9150aea..adde7080847c1d996a982c7f369f2d10901a4ae6 100644 (file)
@@ -28,7 +28,7 @@ You are currently in the middle of a merge that has not been fully completed.  Y
                        set name ""
                        set email ""
                        set fd [git_read [list cat-file commit $curHEAD]]
-                       fconfigure $fd -encoding binary -translation lf
+                       fconfigure $fd -encoding iso8859-1 -translation lf
                        # By default commits are assumed to be in utf-8
                        set enc utf-8
                        while {[gets $fd line] > 0} {
@@ -361,7 +361,7 @@ proc commit_committree {fd_wt curHEAD msg_p} {
        #
        if {$commit_type eq {normal}} {
                set fd_ot [git_read [list cat-file commit $PARENT]]
-               fconfigure $fd_ot -encoding binary -translation lf
+               fconfigure $fd_ot -encoding iso8859-1 -translation lf
                set old_tree [gets $fd_ot]
                close $fd_ot