mirror of
https://github.com/reactos/reactos.git
synced 2025-06-25 10:49:43 +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
|
@ -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