Skip to content

Commit

Permalink
Fixing unicode characters at Windows environments
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianoCahete committed Feb 15, 2016
1 parent 43fbe46 commit 1b31788
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions caniuse.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ linewrap = require 'linewrap'
open = require 'open'
path = require 'path'
osHomedir = require 'os-homedir'
os = require('os')

argv = require 'yargs'
.option 'short',
Expand Down Expand Up @@ -86,6 +87,9 @@ argv = require 'yargs'
resultmap = y: "", n: "", a: "", u: "", i: "", w: ""
supernums = "⁰¹²³⁴⁵⁶⁷⁸⁹"

if (os.platform() == 'win32')
resultmap = y: "\u221A", n: "\u00D7", a: "\u0473", u: "?", i: "\u24D8", w: "\u26A0"

if argv["ascii"]
resultmap = y: "[Yes]", n: "[No]", a: "[Partly]", u: "[?!]", i: "[Info]", w: "[Warning]"

Expand Down

0 comments on commit 1b31788

Please sign in to comment.