Skip to content

Commit dce9468

Browse files
jh10001est31
authored andcommittedAug 31, 2015
gettext.cpp: Fix syntax error when using MSVC
Also remove trailing whitespaces from the file
1 parent 714b68a commit dce9468

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed
 

Diff for: ‎src/gettext.cpp

+7-7
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ void init_gettext(const char *path, const std::string &configured_language) {
167167
if (parameters != "") {
168168
ptr_parameters = parameters.c_str();
169169
}
170-
170+
171171
/** users may start by short name in commandline without extention **/
172172
std::string appname = argv[0];
173173
if (appname.substr(appname.length() - 4) != ".exe") {
@@ -184,7 +184,7 @@ void init_gettext(const char *path, const std::string &configured_language) {
184184
NULL,
185185
&startupinfo,
186186
&processinfo)) {
187-
char buffer[1024];
187+
char buffer[1024];
188188
FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM,
189189
NULL,
190190
GetLastError(),
@@ -202,14 +202,14 @@ void init_gettext(const char *path, const std::string &configured_language) {
202202
else {
203203
exit(0);
204204
}
205+
}
205206
#else
206-
errorstream << "*******************************************************" << std::endl;
207-
errorstream << "Can't apply locale workaround for server!" << std::endl;
208-
errorstream << "Expect language to be broken!" << std::endl;
209-
errorstream << "*******************************************************" << std::endl;
207+
errorstream << "*******************************************************" << std::endl;
208+
errorstream << "Can't apply locale workaround for server!" << std::endl;
209+
errorstream << "Expect language to be broken!" << std::endl;
210+
errorstream << "*******************************************************" << std::endl;
210211

211212
#endif
212-
}
213213

214214
setlocale(LC_ALL,configured_language.c_str());
215215
#else // Mingw

0 commit comments

Comments
 (0)
Please sign in to comment.