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 <angavrilov@gmail.com> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Alexander Gavrilov committed
Aug 31, 2008 at 01:12 UTC
9dc3793166db8f3b80b909e2cb3ac3c5d0a611d5
1 file changed
+2
-2
po/po2msg.sh
+2
-2
@@ -11,8 +11,8 @@ proc u2a {s} {
11
foreach i [split $s ""] {
12
scan $i %c c
13
if {$c<128} {
14
- # escape '[', '\' and ']'
15
- if {$c == 0x5b || $c == 0x5d} {
14
+ # escape '[', '\', '$' and ']'
15
+ if {$c == 0x5b || $c == 0x5d || $c == 0x24} {
16
append res "\\"
17
}
18
append res $i