@matheusbsbs / matheus-bagliano / commits / 2473543caa
Fork 0

git-gui: avoid mis-encoding the copyright message on Windows.

On Windows the tcl script file will use the system encoding and attempting to convert the copyright mis-encodes the string. Instead, keep the message as ASCII and substitute in the correct unicode character when running. Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>

Pat Thoyts committed Sep 13, 2010 at 20:41 UTC 2473543caabe63a9787e7ac42765c8f7169d7197
1 file changed +2 -2
git-gui.sh
+2 -2
@@ -10,8 +10,8 @@
10 exec wish "$argv0" -- "$@"
11
12 set appvers {@@GITGUI_VERSION@@}
13 -set copyright [encoding convertfrom utf-8 {
14 -Copyright © 2006, 2007 Shawn Pearce, et. al.
13 +set copyright [string map [list (c) \u00a9] {
14 +Copyright (c) 2006-2010 Shawn Pearce, et. al.
15
16 This program is free software; you can redistribute it and/or modify
17 it under the terms of the GNU General Public License as published by