diff options
author | Jens Arnold <amiconn@rockbox.org> | 2005-02-01 01:23:58 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2005-02-01 01:23:58 +0000 |
commit | abfd29ab2ceb460b3d347252f153d22405af5f29 (patch) | |
tree | bcaadae7e363c057722be7bae7c9c3321eb488ea /tools | |
parent | eac2d940abaa2298e46a68823e8ae62c1b6232bf (diff) | |
download | rockbox-abfd29ab2ceb460b3d347252f153d22405af5f29.tar.gz rockbox-abfd29ab2ceb460b3d347252f153d22405af5f29.zip |
Bug fix: The trailing null byte wasn't added when there was whitespace after the closing quote in the .lang file, leading to garbled strings when doing non-english builds. Thanks to quelsaruk for tracking this down.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5730 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/genlang | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/genlang b/tools/genlang index 21182b7f9f..7e824433bb 100755 --- a/tools/genlang +++ b/tools/genlang | |||
@@ -91,7 +91,7 @@ while(<LANG>) { | |||
91 | } | 91 | } |
92 | else { | 92 | else { |
93 | push @hfile, $set{'id'}; | 93 | push @hfile, $set{'id'}; |
94 | $value =~ s/\"$/\\0\"/; | 94 | $value =~ s/^\"(.*)\"\W*$/\"$1\\0\"/; |
95 | print CFILE " $value\n"; | 95 | print CFILE " $value\n"; |
96 | } | 96 | } |
97 | 97 | ||