diff options
author | murphy <murphy@rubychan.de> | 2011-04-13 00:33:56 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2011-04-13 00:33:56 +0000 |
commit | 84bbaddb495a1657433106a85274424e5a56259e (patch) | |
tree | 3a7c2204270901761633cc553cc932a8620ce88a /lib | |
parent | 537e6591a46692bfd3c7ea7b09daddb481eeebf3 (diff) | |
download | coderay-84bbaddb495a1657433106a85274424e5a56259e.tar.gz |
fix warning in Ruby 1.8.6
Diffstat (limited to 'lib')
-rw-r--r-- | lib/coderay/scanner.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/coderay/scanner.rb b/lib/coderay/scanner.rb index 3276d4b..8f8ca77 100644 --- a/lib/coderay/scanner.rb +++ b/lib/coderay/scanner.rb @@ -96,7 +96,7 @@ module CodeRay def encode_with_encoding code, target_encoding if code.encoding == target_encoding if code.valid_encoding? - return to_unix code + return to_unix(code) else source_encoding = guess_encoding code end |