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];
|
||||
|
||||
// XXX Workaround: temporarily allow unicode on cp437.
|
||||
// When CP is 65001, node throws on all output!
|
||||
if (ccp === 437) {
|
||||
// Allow unicode on all windows consoles for now:
|
||||
if (+process.env.NCURSES_UNICODE !== 0) {
|
||||
ccp = 65001;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue