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:

committed by
Shawn O. Pearce

parent
55ba8a3474
commit
9dc3793166
@ -11,8 +11,8 @@ proc u2a {s} {
|
|||||||
foreach i [split $s ""] {
|
foreach i [split $s ""] {
|
||||||
scan $i %c c
|
scan $i %c c
|
||||||
if {$c<128} {
|
if {$c<128} {
|
||||||
# escape '[', '\' and ']'
|
# escape '[', '\', '$' and ']'
|
||||||
if {$c == 0x5b || $c == 0x5d} {
|
if {$c == 0x5b || $c == 0x5d || $c == 0x24} {
|
||||||
append res "\\"
|
append res "\\"
|
||||||
}
|
}
|
||||||
append res $i
|
append res $i
|
||||||
|
Reference in New Issue
Block a user