Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
illuna-minetest
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Illuna-Minetest
illuna-minetest
Commits
dce94689
Commit
dce94689
authored
9 years ago
by
jh10001
Committed by
est31
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
gettext.cpp: Fix syntax error when using MSVC
Also remove trailing whitespaces from the file
parent
714b68ad
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/gettext.cpp
+7
-7
7 additions, 7 deletions
src/gettext.cpp
with
7 additions
and
7 deletions
src/gettext.cpp
+
7
−
7
View file @
dce94689
...
...
@@ -167,7 +167,7 @@ void init_gettext(const char *path, const std::string &configured_language) {
if
(
parameters
!=
""
)
{
ptr_parameters
=
parameters
.
c_str
();
}
/** users may start by short name in commandline without extention **/
std
::
string
appname
=
argv
[
0
];
if
(
appname
.
substr
(
appname
.
length
()
-
4
)
!=
".exe"
)
{
...
...
@@ -184,7 +184,7 @@ void init_gettext(const char *path, const std::string &configured_language) {
NULL
,
&
startupinfo
,
&
processinfo
))
{
char
buffer
[
1024
];
char
buffer
[
1024
];
FormatMessage
(
FORMAT_MESSAGE_FROM_SYSTEM
,
NULL
,
GetLastError
(),
...
...
@@ -202,14 +202,14 @@ void init_gettext(const char *path, const std::string &configured_language) {
else
{
exit
(
0
);
}
}
#else
errorstream
<<
"*******************************************************"
<<
std
::
endl
;
errorstream
<<
"Can't apply locale workaround for server!"
<<
std
::
endl
;
errorstream
<<
"Expect language to be broken!"
<<
std
::
endl
;
errorstream
<<
"*******************************************************"
<<
std
::
endl
;
errorstream
<<
"*******************************************************"
<<
std
::
endl
;
errorstream
<<
"Can't apply locale workaround for server!"
<<
std
::
endl
;
errorstream
<<
"Expect language to be broken!"
<<
std
::
endl
;
errorstream
<<
"*******************************************************"
<<
std
::
endl
;
#endif
}
setlocale
(
LC_ALL
,
configured_language
.
c_str
());
#else // Mingw
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment