Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
d67a9d92
Commit
d67a9d92
authored
Jul 10, 2009
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jul 10, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wrc: Reset the language before processing multiple rc files.
parent
3115f335
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
wrc.c
tools/wrc/wrc.c
+8
-3
No files found.
tools/wrc/wrc.c
View file @
d67a9d92
...
...
@@ -132,6 +132,7 @@ int extensions = 1;
/*
* Language setting for resources (-l option)
*/
static
language_t
*
defaultlanguage
;
language_t
*
currentlanguage
=
NULL
;
/*
...
...
@@ -289,6 +290,9 @@ static int load_file( const char *input_name, const char *output_name )
input_name
=
temp_name
;
}
/* Reset the language */
currentlanguage
=
dup_language
(
defaultlanguage
);
/* Go from .rc to .res */
chat
(
"Starting parse
\n
"
);
...
...
@@ -302,6 +306,7 @@ static int load_file( const char *input_name, const char *output_name )
unlink
(
temp_name
);
temp_name
=
NULL
;
}
free
(
currentlanguage
);
return
ret
;
}
...
...
@@ -429,7 +434,7 @@ int main(int argc,char *argv[])
lan
=
strtol
(
optarg
,
NULL
,
0
);
if
(
get_language_codepage
(
PRIMARYLANGID
(
lan
),
SUBLANGID
(
lan
))
==
-
1
)
error
(
"Language %04x is not supported
\n
"
,
lan
);
curren
tlanguage
=
new_language
(
PRIMARYLANGID
(
lan
),
SUBLANGID
(
lan
));
defaul
tlanguage
=
new_language
(
PRIMARYLANGID
(
lan
),
SUBLANGID
(
lan
));
}
break
;
case
'f'
:
...
...
@@ -492,8 +497,8 @@ int main(int argc,char *argv[])
(
debuglevel
&
DEBUGLEVEL_PPMSG
)
!=
0
);
/* Check if the user set a language, else set default */
if
(
!
curren
tlanguage
)
curren
tlanguage
=
new_language
(
0
,
0
);
if
(
!
defaul
tlanguage
)
defaul
tlanguage
=
new_language
(
0
,
0
);
atexit
(
cleanup_files
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment