Skip to content

Commit

Permalink
git-gui: Ensure copyright message is correctly read as UTF-8
Browse files Browse the repository at this point in the history
On Windows using the native Tcl/Tk the copyright header is
being read from the script using the system encoding, which
may not be utf-8.  This causes the multi-byte copyright symbol
(which is actually encoded as utf-8) to read as two characters
and not as a proper copyright symbol.  Explicitly asking Tcl
to read this sequence of bytes as utf-8 corrects the issue.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
  • Loading branch information
Shawn O. Pearce committed Oct 13, 2007
1 parent 914c4d4 commit d6db1ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions git-gui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
exec wish "$argv0" -- "$@"

set appvers {@@GITGUI_VERSION@@}
set copyright {
set copyright [encoding convertfrom utf-8 {
Copyright © 2006, 2007 Shawn Pearce, et. al.

This program is free software; you can redistribute it and/or modify
Expand All @@ -25,7 +25,7 @@ GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA}
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA}]

######################################################################
##
Expand Down

0 comments on commit d6db1ad

Please sign in to comment.