aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2015-07-19 17:09:04 +0200
committerMax Horn2015-07-19 17:12:05 +0200
commitac2c01880e7b61a1c21b660ef8ce9afc3a21e3c6 (patch)
tree94fb532261c81ba5d1e35a60769592bcf87ac990
parentac4360af88d2dfec53fc00677c0284b8ab849b86 (diff)
downloadscummvm-rg350-ac2c01880e7b61a1c21b660ef8ce9afc3a21e3c6.tar.gz
scummvm-rg350-ac2c01880e7b61a1c21b660ef8ce9afc3a21e3c6.tar.bz2
scummvm-rg350-ac2c01880e7b61a1c21b660ef8ce9afc3a21e3c6.zip
SHERLOCK: Avoid non-ASCII characters in string constants
How such string constants are compiled into code depends on the encoding used for the source file, which easily is changed by accident (e.g. between UTF-8 and Latin-1 encoding). Better to explicitly encode the character codes, as is already done for various other text messages.
-rw-r--r--engines/sherlock/scalpel/scalpel_fixed_text.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sherlock/scalpel/scalpel_fixed_text.cpp b/engines/sherlock/scalpel/scalpel_fixed_text.cpp
index 465940ce45..63f84d68c6 100644
--- a/engines/sherlock/scalpel/scalpel_fixed_text.cpp
+++ b/engines/sherlock/scalpel/scalpel_fixed_text.cpp
@@ -264,7 +264,7 @@ static const char *const fixedTextDE_ActionPick[] = {
"Diese Blumen geh\224ren Penny",
"Sie ist doch viel zu jung f\201r Dich!",
"Ich denke, Du stehst mehr auf M\204dchen ?",
- "Staatseigentum - Nur für den Dienstgebrauch !"
+ "Staatseigentum - Nur f\201r den Dienstgebrauch !"
};
static const char *const fixedTextES_ActionPick[] = {
@@ -291,8 +291,8 @@ static const char *const fixedTextDE_ActionUse[] = {
"Nein, das geht wirklich nicht",
"Tja keinerlei Wirkung",
"Da kommst du nicht dran",
- "Na gut, die Tür sieht jetzt gr\224\341er aus. Zufrieden?",
- "Türen sind Nichtraucher!"
+ "Na gut, die T\201r sieht jetzt gr\224\341er aus. Zufrieden?",
+ "T\201ren sind Nichtraucher!"
};
static const char *const fixedTextES_ActionUse[] = {