src: fix exception message encoding on Windows
authorBrian White <mscdex@mscdex.net>
Tue, 13 Oct 2015 21:18:15 +0000 (17:18 -0400)
committerJames M Snell <jasnell@gmail.com>
Thu, 29 Oct 2015 15:38:44 +0000 (08:38 -0700)
commitfe01d0df7a43596020de3a6a2b6180c8a97d7d90
tree765a0fe57de4a4a136396c0270034f11b81ed56e
parenteb7c3fb2f4512b828024651bd01c425055485043
src: fix exception message encoding on Windows

The printf family of functions do not properly display UTF8
strings well on Windows. Use the appropriate wide character
API instead if stderr is a tty.

PR-URL: https://github.com/nodejs/node/pull/3288
Fixes: https://github.com/nodejs/node/issues/3284
Reviewed-By: Bert Belder <bertbelder@gmail.com>
src/node.cc