aboutsummaryrefslogtreecommitdiff
path: root/devtools
diff options
context:
space:
mode:
authorThierry Crozat2017-01-15 19:39:46 +0000
committerThierry Crozat2017-01-15 19:39:46 +0000
commit780e0fe49014c934df94f3b938d840fe09720085 (patch)
tree991529c67a9208073f553333b1681ca24f07961c /devtools
parentc46697be485bfb1544b23c39c9f68e0f551ace8a (diff)
downloadscummvm-rg350-780e0fe49014c934df94f3b938d840fe09720085.tar.gz
scummvm-rg350-780e0fe49014c934df94f3b938d840fe09720085.tar.bz2
scummvm-rg350-780e0fe49014c934df94f3b938d840fe09720085.zip
DEVTOOLS: Add missing end of line in error messages for cp parser
Diffstat (limited to 'devtools')
-rw-r--r--devtools/create_translations/cp_parser.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/devtools/create_translations/cp_parser.cpp b/devtools/create_translations/cp_parser.cpp
index f5e4c9d6bb..c7c7597837 100644
--- a/devtools/create_translations/cp_parser.cpp
+++ b/devtools/create_translations/cp_parser.cpp
@@ -50,7 +50,7 @@ Codepage *parseCodepageMapping(const std::string &filename) {
std::ifstream in(filename.c_str());
if (!in) {
- fprintf(stderr, "ERROR: Could not open file \"%s\"!", filename.c_str());
+ fprintf(stderr, "ERROR: Could not open file \"%s\"!\n", filename.c_str());
return 0;
}
@@ -63,7 +63,7 @@ Codepage *parseCodepageMapping(const std::string &filename) {
if (in.eof())
break;
if (in.fail()) {
- fprintf(stderr, "ERROR: Reading from file \"%s\" failed!", filename.c_str());
+ fprintf(stderr, "ERROR: Reading from file \"%s\" failed!\n", filename.c_str());
return 0;
}
@@ -76,7 +76,7 @@ Codepage *parseCodepageMapping(const std::string &filename) {
int unicode, required;
const int parsed = sscanf(line.c_str(), "%d %d", &unicode, &required);
if (parsed < 1 || parsed > 2) {
- fprintf(stderr, "ERROR: Line \"%s\" is malformed!", filename.c_str());
+ fprintf(stderr, "ERROR: Line \"%s\" is malformed!\n", filename.c_str());
return 0;
}
// In case no required integer was given, we assume the character is
@@ -97,7 +97,7 @@ Codepage *parseCodepageMapping(const std::string &filename) {
// Check whether all character encodings are mapped, if not error out
if (processedMappings != 256) {
- fprintf(stderr, "ERROR: File \"%s\" does not contain mappings for exactly 256 characters!", filename.c_str());
+ fprintf(stderr, "ERROR: File \"%s\" does not contain mappings for exactly 256 characters!\n", filename.c_str());
return 0;
}