]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/node_modules/npmlog/node_modules/gauge/node_modules/has-unicode/index.js
Adding integrated tile server
[simantics/district.git] / org.simantics.maps.server / node / node-v4.8.0-win-x64 / node_modules / npm / node_modules / npmlog / node_modules / gauge / node_modules / has-unicode / index.js
1 "use strict"
2 var os = require("os")
3
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
10   // appropriate.
11   if (os.type() == "Windows_NT") { return false }
12
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)) {
17     return true
18   }
19
20   return false
21 }