Skip to content

Commit d6a8596

Browse files
author
Git for Windows Build Agent
committed
Merge pull request #665 from yaras/fix-git-664
Fix initial git gui message encoding
2 parents f1dea1d + ab93ff3 commit d6a8596

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

git-gui/git-gui.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1601,11 +1601,13 @@ proc run_prepare_commit_msg_hook {} {
16011601
if {[file isfile [gitdir MERGE_MSG]]} {
16021602
set pcm_source "merge"
16031603
set fd_mm [open [gitdir MERGE_MSG] r]
1604+
fconfigure $fd_mm -encoding utf-8
16041605
puts -nonewline $fd_pcm [read $fd_mm]
16051606
close $fd_mm
16061607
} elseif {[file isfile [gitdir SQUASH_MSG]]} {
16071608
set pcm_source "squash"
16081609
set fd_sm [open [gitdir SQUASH_MSG] r]
1610+
fconfigure $fd_sm -encoding utf-8
16091611
puts -nonewline $fd_pcm [read $fd_sm]
16101612
close $fd_sm
16111613
} else {

0 commit comments

Comments
 (0)