build: escape backslashes in i18n strings
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 22 Apr 2012 14:29:00 +0000 (14:29 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 22 Apr 2012 14:29:00 +0000 (14:29 +0000)
build/i18n-scan.pl

index 781ac6480e630554768abe8a0a7ee11a826e07d8..899d90d22c282ada2e203cc249a75a52aa51aa83 100755 (executable)
@@ -28,6 +28,7 @@ sub dec_tpl_str
        $s =~ s/[\s\n]+/ /g;
        $s =~ s/^ //;
        $s =~ s/ $//;
+       $s =~ s/\\/\\\\/g;
        return $s;
 }