From: Alexander Gavrilov Date: Sat, 30 Aug 2008 21:12:26 +0000 (+0400) Subject: git-gui: Fix string escaping in po2msg.sh X-Git-Tag: v1.6.0.2~16^2~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9dc3793166db8f3b80b909e2cb3ac3c5d0a611d5;p=git.git git-gui: Fix string escaping in po2msg.sh Escape '$', because otherwise git-gui crashes while trying to load malformed Japanese localization strings. Signed-off-by: Alexander Gavrilov Signed-off-by: Shawn O. Pearce --- diff --git a/po/po2msg.sh b/po/po2msg.sh index b7c4bf3fd..1e9f99252 100644 --- a/po/po2msg.sh +++ b/po/po2msg.sh @@ -11,8 +11,8 @@ proc u2a {s} { foreach i [split $s ""] { scan $i %c c if {$c<128} { - # escape '[', '\' and ']' - if {$c == 0x5b || $c == 0x5d} { + # escape '[', '\', '$' and ']' + if {$c == 0x5b || $c == 0x5d || $c == 0x24} { append res "\\" } append res $i