summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2013-10-27 23:34:35 -0600
committerDan Allen <dan.j.allen@gmail.com>2013-10-27 23:34:35 -0600
commit7d0f2cc321c3dcdd3fbcb53b02bde4fe1a0eea9c (patch)
tree321b425d5295a6680a0af2f3ea285c03fe3bae13
parent139c9cb21d16d3e8e5b3aaee38717d9c066ae14a (diff)
fix Ruby 1.9 version match
-rwxr-xr-xlib/asciidoctor.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/asciidoctor.rb b/lib/asciidoctor.rb
index 574fd26d..1d87897b 100755
--- a/lib/asciidoctor.rb
+++ b/lib/asciidoctor.rb
@@ -135,7 +135,7 @@ module Asciidoctor
# _All_ input data must be force encoded to UTF-8 if Encoding.default_external is *not* UTF-8
# Address failures performing string operations that are reported as "invalid byte sequence in US-ASCII"
# Ruby 1.8 doesn't seem to experience this problem (perhaps because it isn't validating the encodings)
- FORCE_ENCODING = !RUBY_ENGINE_OPAL && RUBY_VERSION > '1.9' && ::Encoding.default_external != ::Encoding::UTF_8
+ FORCE_ENCODING = !RUBY_ENGINE_OPAL && RUBY_VERSION >= '1.9' && ::Encoding.default_external != ::Encoding::UTF_8
# Flag to indicate that line length should be calculated using a unicode mode hint
FORCE_UNICODE_LINE_LENGTH = RUBY_VERSION < '1.9'