From: Pat Thoyts Date: Mon, 13 Sep 2010 19:41:42 +0000 (+0100) Subject: git-gui: avoid mis-encoding the copyright message on Windows. X-Git-Tag: gitgui-0.13.0~1 X-Git-Url: https://git.tokkee.org/?p=git.git;a=commitdiff_plain;h=2473543caabe63a9787e7ac42765c8f7169d7197 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 --- diff --git a/git-gui.sh b/git-gui.sh index 0d5c5e389..4617f29c2 100755 --- a/git-gui.sh +++ b/git-gui.sh @@ -10,8 +10,8 @@ exec wish "$argv0" -- "$@" set appvers {@@GITGUI_VERSION@@} -set copyright [encoding convertfrom utf-8 { -Copyright © 2006, 2007 Shawn Pearce, et. al. +set copyright [string map [list (c) \u00a9] { +Copyright (c) 2006-2010 Shawn Pearce, et. al. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by