diff options
| author | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-05-19 10:08:11 +0000 |
|---|---|---|
| committer | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-05-19 10:08:11 +0000 |
| commit | 919561c20d88042d85a74b9455b55640da2bc8ab (patch) | |
| tree | 6b6e96a2ff6eaf9d1ca4d35ec93cd0dc150b4d71 | |
| parent | 6dcc013b21b62b25c414014af4f33a06574452c2 (diff) | |
| download | ruby-919561c20d88042d85a74b9455b55640da2bc8ab.tar.gz ruby-919561c20d88042d85a74b9455b55640da2bc8ab.tar.xz ruby-919561c20d88042d85a74b9455b55640da2bc8ab.zip | |
* lib/rexml/encodings/SHIFT-JIS.rb: encoding and decoding were
swapped. [ruby-core:4772]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | lib/rexml/encodings/SHIFT-JIS.rb | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,8 @@ +Thu May 19 19:04:29 2005 speakillof <speakillof@yahoo.co.jp> + + * lib/rexml/encodings/SHIFT-JIS.rb: encoding and decoding were + swapped. [ruby-core:4772] + Wed May 18 23:42:25 2005 Nobuyoshi Nakada <nobu@ruby-lang.org> * error.c (exc_exception): reverted to call Exception#initialize diff --git a/lib/rexml/encodings/SHIFT-JIS.rb b/lib/rexml/encodings/SHIFT-JIS.rb index cbbb88e68..d055d0c76 100644 --- a/lib/rexml/encodings/SHIFT-JIS.rb +++ b/lib/rexml/encodings/SHIFT-JIS.rb @@ -3,11 +3,11 @@ require 'uconv' module REXML module Encoding def decode_sjis content - Uconv::u8tosjis(content) + Uconv::sjistou8(content) end def encode_sjis(str) - Uconv::sjistou8(str) + Uconv::u8tosjis(str) end b = proc do |obj| |
