git-gui: Always disable the Tcl EOF character when reading
[gitweb.git] / git-gui.sh
index 38084515cba69b1fa1e8c29834f1de562014d44f..d0b75c044c4f0f519ff2f942b1c1b22168c496da 100755 (executable)
@@ -414,6 +414,7 @@ proc _open_stdout_stderr {cmd} {
                        error $err
                }
        }
+       fconfigure $fd -eofchar {}
        return $fd
 }
 
@@ -828,6 +829,7 @@ proc load_message {file} {
                if {[catch {set fd [open $f r]}]} {
                        return 0
                }
+               fconfigure $fd -eofchar {}
                set content [string trim [read $fd]]
                close $fd
                regsub -all -line {[ \r\t]+$} $content {} content