mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 13:56:05 +00:00
[CONUTILS][CMD] Add and use a helper ConStdStreamsSetCacheCodePage() macro instead of repeatedly calling ConStreamSetCacheCodePage() on the standard streams.
This commit is contained in:
parent
f268430c05
commit
35f499e52f
3 changed files with 16 additions and 7 deletions
|
@ -529,9 +529,7 @@ Execute(LPTSTR Full, LPTSTR First, LPTSTR Rest, PARSED_COMMAND *Cmd)
|
|||
OutputCodePage = uNewOutputCodePage;
|
||||
|
||||
/* Update the streams codepage cache as well */
|
||||
ConStreamSetCacheCodePage(StdIn , InputCodePage );
|
||||
ConStreamSetCacheCodePage(StdOut, OutputCodePage);
|
||||
ConStreamSetCacheCodePage(StdErr, OutputCodePage);
|
||||
ConStdStreamsSetCacheCodePage(InputCodePage, OutputCodePage);
|
||||
}
|
||||
|
||||
/* Restore the original console title */
|
||||
|
|
|
@ -321,9 +321,7 @@ INT cmd_start (LPTSTR Rest)
|
|||
OutputCodePage = uNewOutputCodePage;
|
||||
|
||||
/* Update the streams codepage cache as well */
|
||||
ConStreamSetCacheCodePage(StdIn , InputCodePage );
|
||||
ConStreamSetCacheCodePage(StdOut, OutputCodePage);
|
||||
ConStreamSetCacheCodePage(StdErr, OutputCodePage);
|
||||
ConStdStreamsSetCacheCodePage(InputCodePage, OutputCodePage);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue