allow unicode on all windows consoles for now. see #130.
This commit is contained in:
parent
56aae2e861
commit
3f8ed04898
|
@ -2157,9 +2157,8 @@ Tput.prototype.GetConsoleCP = function() {
|
||||||
|
|
||||||
ccp = +ccp[0];
|
ccp = +ccp[0];
|
||||||
|
|
||||||
// XXX Workaround: temporarily allow unicode on cp437.
|
// Allow unicode on all windows consoles for now:
|
||||||
// When CP is 65001, node throws on all output!
|
if (+process.env.NCURSES_UNICODE !== 0) {
|
||||||
if (ccp === 437) {
|
|
||||||
ccp = 65001;
|
ccp = 65001;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue