summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 55ba8a3)
raw | patch | inline | side by side (parent: 55ba8a3)
author | Alexander Gavrilov <angavrilov@gmail.com> | |
Sat, 30 Aug 2008 21:12:26 +0000 (01:12 +0400) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Mon, 1 Sep 2008 22:39:11 +0000 (15:39 -0700) |
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>
trying to load malformed Japanese localization strings.
Signed-off-by: Alexander Gavrilov <angavrilov@gmail.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
po/po2msg.sh | patch | blob | history |
diff --git a/po/po2msg.sh b/po/po2msg.sh
index b7c4bf3fdffb3d04b8c01b25e99a706e499de0d1..1e9f992528153fa62c167db8f8e8c184e7df86bd 100644 (file)
--- a/po/po2msg.sh
+++ b/po/po2msg.sh
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