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
ec2f579c
Commit
ec2f579c
authored
Nov 23, 2021
by
Hugh McMaster
Committed by
Alexandre Julliard
Nov 24, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chcp: Print the active code page after successfully setting the new one.
Signed-off-by:
Hugh McMaster
<
hugh.mcmaster@outlook.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
97950e01
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
main.c
programs/chcp.com/main.c
+4
-3
No files found.
programs/chcp.com/main.c
View file @
ec2f579c
...
@@ -102,10 +102,11 @@ int __cdecl wmain(int argc, WCHAR *argv[])
...
@@ -102,10 +102,11 @@ int __cdecl wmain(int argc, WCHAR *argv[])
int
codepage
=
_wtoi
(
argv
[
1
]);
int
codepage
=
_wtoi
(
argv
[
1
]);
int
success
=
SetConsoleCP
(
codepage
)
&&
SetConsoleOutputCP
(
codepage
);
int
success
=
SetConsoleCP
(
codepage
)
&&
SetConsoleOutputCP
(
codepage
);
if
(
!
success
)
if
(
success
)
{
output_message
(
STRING_ACTIVE_CODE_PAGE
,
codepage
);
else
output_message
(
STRING_INVALID_CODE_PAGE
);
output_message
(
STRING_INVALID_CODE_PAGE
);
}
return
!
success
;
return
!
success
;
}
}
...
...
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