allow unicode on all windows consoles for now. see #130.

This commit is contained in:
Christopher Jeffrey 2015-04-26 19:22:23 -07:00
parent 56aae2e861
commit 3f8ed04898
1 changed files with 2 additions and 3 deletions

View File

@ -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;
}