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>
This commit is contained in:
parent
55ba8a3474
commit
9dc3793166
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user