aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rexml/encodings
diff options
context:
space:
mode:
authorocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-04-25 05:09:08 +0000
committerocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-04-25 05:09:08 +0000
commit64c156e07395882539f2e24b2472322c66807472 (patch)
treecaee1faf37b66902ed2fd100433c156dbcf083bd /lib/rexml/encodings
parent0214d35d79b74bc52442b9337bbf74d35102bf59 (diff)
downloadruby-64c156e07395882539f2e24b2472322c66807472.tar.gz
* lib/rexml/encodings/SHIFT-JIS.rb: encoding and decoding were
swapped. [ruby-core:4772] (patch from speakillof) * lib/rexml/encoding.rb: fixed indentation. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8385 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rexml/encodings')
-rw-r--r--lib/rexml/encodings/SHIFT-JIS.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rexml/encodings/SHIFT-JIS.rb b/lib/rexml/encodings/SHIFT-JIS.rb
index cbbb88e683..d055d0c761 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|