* [PATCH (GIT-GUI MSYSGIT FIX)] git-gui: Fix string escaping in po2msg.sh
@ 2008-08-30 21:12 Alexander Gavrilov
0 siblings, 0 replies; only message in thread
From: Alexander Gavrilov @ 2008-08-30 21:12 UTC (permalink / raw)
To: git; +Cc: Shawn O. Pearce, Johannes Schindelin
Escape '$', because otherwise git-gui crashes while
trying to load malformed Japanese localization strings.
Signed-off-by: Alexander Gavrilov <angavrilov@gmail.com>
---
po/po2msg.sh | 4 ++--
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
--
1.6.0.20.g6148bc
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2008-08-30 21:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-30 21:12 [PATCH (GIT-GUI MSYSGIT FIX)] git-gui: Fix string escaping in po2msg.sh Alexander Gavrilov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).