4 var hasUnicode = module.exports = function () {
5 // Recent Win32 platforms (>XP) CAN support unicode in the console but
6 // don't have to, and in non-english locales often use traditional local
7 // code pages. There's no way, short of windows system calls or execing
8 // the chcp command line program to figure this out. As such, we default
9 // this to false and encourage your users to override it via config if
11 if (os.type() == "Windows_NT") { return false }
13 var isUTF8 = /[.]UTF-8/
14 if (isUTF8.test(process.env.LC_ALL)
15 || process.env.LC_CTYPE == 'UTF-8'
16 || isUTF8.test(process.env.LANG)) {