Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
git-gui: Fix string escaping in po2msg.sh
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>
po/po2msg.sh
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(from parent 1:
55ba8a3
)
diff --git
a/po/po2msg.sh
b/po/po2msg.sh
index b7c4bf3fdffb3d04b8c01b25e99a706e499de0d1..1e9f992528153fa62c167db8f8e8c184e7df86bd 100644
(file)
--- 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