forked from len0rd/rockbox
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:
parent
eac2d940ab
commit
abfd29ab2c
1 changed files with 1 additions and 1 deletions
|
|
@ -91,7 +91,7 @@ while(<LANG>) {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
push @hfile, $set{'id'};
|
push @hfile, $set{'id'};
|
||||||
$value =~ s/\"$/\\0\"/;
|
$value =~ s/^\"(.*)\"\W*$/\"$1\\0\"/;
|
||||||
print CFILE " $value\n";
|
print CFILE " $value\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue