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
This commit is contained in:
Jens Arnold 2005-02-01 01:23:58 +00:00
parent eac2d940ab
commit abfd29ab2c

View file

@ -91,7 +91,7 @@ while(<LANG>) {
}
else {
push @hfile, $set{'id'};
$value =~ s/\"$/\\0\"/;
$value =~ s/^\"(.*)\"\W*$/\"$1\\0\"/;
print CFILE " $value\n";
}