summaryrefslogtreecommitdiff
path: root/po
diff options
context:
space:
mode:
authorAlexander Gavrilov <angavrilov@gmail.com>2008-08-30 21:12:26 (GMT)
committerShawn O. Pearce <spearce@spearce.org>2008-09-01 22:39:11 (GMT)
commit9dc3793166db8f3b80b909e2cb3ac3c5d0a611d5 (patch)
tree93b32d1aab97f5aa0be092f104b9a755c12de690 /po
parent55ba8a3474102eb8d638834d2b9bfe58d5014a40 (diff)
downloadgit-9dc3793166db8f3b80b909e2cb3ac3c5d0a611d5.zip
git-9dc3793166db8f3b80b909e2cb3ac3c5d0a611d5.tar.gz
git-9dc3793166db8f3b80b909e2cb3ac3c5d0a611d5.tar.bz2
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>
Diffstat (limited to 'po')
-rw-r--r--po/po2msg.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/po/po2msg.sh b/po/po2msg.sh
index b7c4bf3..1e9f992 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