{"thread":{"id":"15291","subject":"[PATCH (GIT-GUI MSYSGIT FIX)] git-gui: Fix string escaping in po2msg.sh","startedAt":"2008-08-30T21:12:26Z","lastAt":"2008-08-30T21:12:26Z","messageCount":1,"participants":["Alexander Gavrilov"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"89262","messageId":"200808310112.26506.angavrilov@gmail.com","threadId":"15291","inReplyTo":null,"subject":"[PATCH (GIT-GUI MSYSGIT FIX)] git-gui: Fix string escaping in po2msg.sh","fromName":"Alexander Gavrilov","fromEmail":"angavrilov@gmail.com","sentAt":"2008-08-30T21:12:26Z","receivedAt":"2008-08-30T21:12:26Z","isPatch":true,"sender":{"key":"angavrilov@gmail.com","avatar":"https://avatars.githubusercontent.com/u/42666?v=4"},"body":"Escape '$', because otherwise git-gui crashes while\ntrying to load malformed Japanese localization strings.\n\nSigned-off-by: Alexander Gavrilov <angavrilov@gmail.com>\n---\n po/po2msg.sh |    4 ++--\n 1 files changed, 2 insertions(+), 2 deletions(-)\n\ndiff --git a/po/po2msg.sh b/po/po2msg.sh\nindex b7c4bf3..1e9f992 100644\n--- a/po/po2msg.sh\n+++ b/po/po2msg.sh\n@@ -11,8 +11,8 @@ proc u2a {s} {\n \tforeach i [split $s \"\"] {\n \t\tscan $i %c c\n \t\tif {$c<128} {\n-\t\t\t# escape '[', '\\' and ']'\n-\t\t\tif {$c == 0x5b || $c == 0x5d} {\n+\t\t\t# escape '[', '\\', '$' and ']'\n+\t\t\tif {$c == 0x5b || $c == 0x5d || $c == 0x24} {\n \t\t\t\tappend res \"\\\\\"\n \t\t\t}\n \t\t\tappend res $i\n-- \n1.6.0.20.g6148bc\n"}]}