lib/nanoc/cli.rb in nanoc-3.6.5 vs lib/nanoc/cli.rb in nanoc-3.6.6

- old
+ new

@@ -182,11 +182,11 @@ # @return [Boolean] true if UTF-8 support is present, false if not def self.enable_utf8?(io) return true if !io.tty? - %w( LC_ALL LC_CTYPE LANG ).any? { |e| ENV[e] =~ /UTF/ } + %w( LC_ALL LC_CTYPE LANG ).any? { |e| ENV[e] =~ /UTF/i } end # @return [Boolean] true if color support is present, false if not def self.enable_ansi_colors?(io) return false if !io.tty? @@ -194,10 +194,10 @@ begin require 'Win32/Console/ANSI' if RUBY_PLATFORM =~ /mswin|mingw/ rescue LoadError return false end - + return true end end