From 3f8ed04898696d2fea99f6bc5b91942cdaaf27f0 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Sun, 26 Apr 2015 19:22:23 -0700 Subject: [PATCH] allow unicode on all windows consoles for now. see #130. --- lib/tput.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/tput.js b/lib/tput.js index 2d98d25..9d01c91 100644 --- a/lib/tput.js +++ b/lib/tput.js @@ -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; }