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 | |
| parent | eac2d940abaa2298e46a68823e8ae62c1b6232bf (diff) | |
| download | rockbox-abfd29ab2ceb460b3d347252f153d22405af5f29.zip rockbox-abfd29ab2ceb460b3d347252f153d22405af5f29.tar.gz rockbox-abfd29ab2ceb460b3d347252f153d22405af5f29.tar.bz2 rockbox-abfd29ab2ceb460b3d347252f153d22405af5f29.tar.xz | |
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
| -rwxr-xr-x | tools/genlang | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/genlang b/tools/genlang index 21182b7..7e82443 100755 --- a/tools/genlang +++ b/tools/genlang @@ -91,7 +91,7 @@ while(<LANG>) { } else { push @hfile, $set{'id'}; - $value =~ s/\"$/\\0\"/; + $value =~ s/^\"(.*)\"\W*$/\"$1\\0\"/; print CFILE " $value\n"; } |