1
0
mirror of https://github.com/git/git.git synced 2024-11-19 01:54:03 +01:00
Git Source Code Mirror. Please follow Documentation/SubmittingPatches procedure for any of your improvements.
Go to file
Shawn O. Pearce f20db5ff30 git-gui: Correctly handle UTF-8 encoded commit messages
Uwe Kleine-König discovered git-gui mangled his surname and did
not send the proper UTF-8 byte sequence to git-commit-tree when
his name appeared in the commit message (e.g. Signed-Off-By line).

Turns out this was related to other trouble that I had in the past
with trying to use "fconfigure $fd -encoding $enc" to select the
stream encoding and let Tcl's IO engine do all of the encoding work
for us.  Other parts of git-gui were just always setting the file
channels to "-encoding binary" and then performing the encoding
work themselves using "encoding convertfrom" and "convertto", as
that was the only way I could make UTF-8 filenames work properly.

I found this same bug in the amend code path, and in the blame
display.  So its fixed in all three locations (commit creation,
reloading message for amend, viewing  message in blame).

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
2007-04-24 02:11:40 -04:00
.gitignore git-gui: Revert "git-gui: Display all authors of git-gui." 2007-03-12 13:26:04 -04:00
git-gui.sh git-gui: Correctly handle UTF-8 encoded commit messages 2007-04-24 02:11:40 -04:00
GIT-VERSION-GEN git-gui: Prefer version file over git-describe. 2007-02-14 01:55:16 -05:00
Makefile git-gui: Honor TCLTK_PATH if supplied 2007-04-17 13:16:14 -04:00