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
7e9d498d
Commit
7e9d498d
authored
Jun 14, 2007
by
Jason Edmeades
Committed by
Alexandre Julliard
Jun 15, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd.exe: Add support for cmd.exe /u (Unicode from internal pgms).
parent
c960cae9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
wcmdmain.c
programs/cmd/wcmdmain.c
+10
-0
No files found.
programs/cmd/wcmdmain.c
View file @
7e9d498d
...
...
@@ -92,6 +92,7 @@ extern struct env_stack *pushd_directories;
static
const
WCHAR
*
pagedMessage
=
NULL
;
static
char
*
output_bufA
=
NULL
;
#define MAX_WRITECONSOLE_SIZE 65535
BOOL
unicodePipes
=
FALSE
;
static
WCHAR
*
WCMD_expand_envvar
(
WCHAR
*
start
);
...
...
@@ -141,6 +142,10 @@ int wmain (int argc, WCHAR *argvW[])
opt_k
=
1
;
}
else
if
(
tolowerW
(
c
)
==
's'
)
{
opt_s
=
1
;
}
else
if
(
tolowerW
(
c
)
==
'a'
)
{
unicodePipes
=
FALSE
;
}
else
if
(
tolowerW
(
c
)
==
'u'
)
{
unicodePipes
=
TRUE
;
}
else
if
(
tolowerW
(
c
)
==
't'
&&
(
*
argvW
)[
2
]
==
':'
)
{
opt_t
=
strtoulW
(
&
(
*
argvW
)[
3
],
NULL
,
16
);
}
else
if
(
tolowerW
(
c
)
==
'x'
||
tolowerW
(
c
)
==
'y'
)
{
...
...
@@ -1306,6 +1311,7 @@ static void WCMD_output_asis_len(const WCHAR *message, int len) {
BOOL
usedDefaultChar
=
FALSE
;
DWORD
convertedChars
;
if
(
!
unicodePipes
)
{
/*
* Allocate buffer to use when writing to file. (Not freed, as one off)
*/
...
...
@@ -1322,6 +1328,10 @@ static void WCMD_output_asis_len(const WCHAR *message, int len) {
"?"
,
&
usedDefaultChar
);
WriteFile
(
GetStdHandle
(
STD_OUTPUT_HANDLE
),
output_bufA
,
convertedChars
,
&
nOut
,
FALSE
);
}
else
{
WriteFile
(
GetStdHandle
(
STD_OUTPUT_HANDLE
),
message
,
len
*
sizeof
(
WCHAR
),
&
nOut
,
FALSE
);
}
}
return
;
}
...
...
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