Sha256: 656ab18b74d459722a5c09efcd4114cd690334f1e892eb4ef36e99d927c8ea58
Contents?: true
Size: 663 Bytes
Versions: 3
Compression:
Stored size: 663 Bytes
Contents
# Require this file if you need Unicode support. require 'cucumber/platform' require 'cucumber/formatters/ansicolor' $KCODE='u' unless Cucumber::RUBY_1_9 if Cucumber::WINDOWS_MRI && `chcp` =~ /Active code page: (\d+)/ codepage = $1.to_i codepages = (1251..1252) if codepages.include?(codepage) Cucumber::CODEPAGE = "cp#{codepage}" require 'iconv' module Kernel alias cucumber_print print def print(*a) cucumber_print *Iconv.iconv(Cucumber::CODEPAGE, "UTF-8", *a) end alias cucumber_puts puts def puts(*a) cucumber_puts *Iconv.iconv(Cucumber::CODEPAGE, "UTF-8", *a) end end end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
aslakhellesoy-cucumber-0.1.14.1 | lib/cucumber/formatters/unicode.rb |
aslakhellesoy-cucumber-0.1.14.2 | lib/cucumber/formatters/unicode.rb |
cucumber-0.1.14 | lib/cucumber/formatters/unicode.rb |