From abfd29ab2ceb460b3d347252f153d22405af5f29 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Tue, 1 Feb 2005 01:23:58 +0000 Subject: 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 --- tools/genlang | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/genlang b/tools/genlang index 21182b7f9f..7e824433bb 100755 --- a/tools/genlang +++ b/tools/genlang @@ -91,7 +91,7 @@ while() { } else { push @hfile, $set{'id'}; - $value =~ s/\"$/\\0\"/; + $value =~ s/^\"(.*)\"\W*$/\"$1\\0\"/; print CFILE " $value\n"; } -- cgit v1.2.3