mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
added ability to change code page back to cp866 in win32
This commit is contained in:
parent
7c5f83c409
commit
22e5cb8e01
1 changed files with 3 additions and 2 deletions
|
|
@ -20,8 +20,9 @@ exports.listen = function(pServer){
|
|||
socket.on('message', function(pCommand) {
|
||||
console.log(pCommand);
|
||||
|
||||
if(process.platform === 'win32')
|
||||
pCommand = 'chcp 65001 |' + pCommand;
|
||||
/* change code page to unicode and then back to cp866 */
|
||||
if(process.platform === 'win32')
|
||||
pCommand = 'chcp 65001 |' + pCommand + '&& chcp 866';
|
||||
|
||||
exec(pCommand, getExec);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue