From 57afbdb7d1eceff4a0662b01338b322dd5639902 Mon Sep 17 00:00:00 2001 From: ocean Date: Thu, 19 May 2005 10:08:11 +0000 Subject: * lib/rexml/encodings/SHIFT-JIS.rb: encoding and decoding were swapped. [ruby-core:4772] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rexml/encodings/SHIFT-JIS.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/rexml/encodings/SHIFT-JIS.rb') 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| -- cgit v1.2.3