]> git.pld-linux.org Git - packages/ruby.git/blame - ruby-1.8.3-rexml.patch
- obsolete
[packages/ruby.git] / ruby-1.8.3-rexml.patch
CommitLineData
c8b1403f 1diff -ur ruby-1.8.3-o/lib/rexml/encodings/EUC-JP.rb ruby-1.8.3/lib/rexml/encodings/EUC-JP.rb
2--- ruby-1.8.3-o/lib/rexml/encodings/EUC-JP.rb 2005-09-20 21:49:27.000000000 -0600
3+++ ruby-1.8.3/lib/rexml/encodings/EUC-JP.rb 2005-09-20 21:55:25.000000000 -0600
4@@ -10,7 +10,7 @@
5 Uconv::u8toeuc(content)
6 end
7
8- register("EUC-JP") do |obj|
9+ self.register("EUC-JP") do |obj|
10 class << obj
11 alias decode decode_eucjp
12 alias encode encode_eucjp
13diff -ur ruby-1.8.3-o/lib/rexml/encodings/ICONV.rb ruby-1.8.3/lib/rexml/encodings/ICONV.rb
14--- ruby-1.8.3-o/lib/rexml/encodings/ICONV.rb 2005-09-20 21:49:27.000000000 -0600
15+++ ruby-1.8.3/lib/rexml/encodings/ICONV.rb 2005-09-20 21:55:31.000000000 -0600
16@@ -11,7 +11,7 @@
17 Iconv.conv(@encoding, UTF_8, content)
18 end
19
20- register("ICONV") do |obj|
21+ self.register("ICONV") do |obj|
22 Iconv.conv(UTF_8, obj.encoding, nil)
23 class << obj
24 alias decode decode_iconv
25diff -ur ruby-1.8.3-o/lib/rexml/encodings/ISO-8859-1.rb ruby-1.8.3/lib/rexml/encodings/ISO-8859-1.rb
26--- ruby-1.8.3-o/lib/rexml/encodings/ISO-8859-1.rb 2005-09-20 21:49:27.000000000 -0600
27+++ ruby-1.8.3/lib/rexml/encodings/ISO-8859-1.rb 2005-09-20 21:55:40.000000000 -0600
28@@ -2,6 +2,6 @@
29
30 module REXML
31 module Encoding
32- register("ISO-8859-1", &encoding_method("US-ASCII"))
33+ self.register("ISO-8859-1", &encoding_method("US-ASCII"))
34 end
35 end
36diff -ur ruby-1.8.3-o/lib/rexml/encodings/SHIFT-JIS.rb ruby-1.8.3/lib/rexml/encodings/SHIFT-JIS.rb
37--- ruby-1.8.3-o/lib/rexml/encodings/SHIFT-JIS.rb 2005-09-20 21:49:27.000000000 -0600
38+++ ruby-1.8.3/lib/rexml/encodings/SHIFT-JIS.rb 2005-09-20 21:55:48.000000000 -0600
39@@ -16,7 +16,7 @@
40 alias encode encode_sjis
41 end
42 end
43- register("SHIFT-JIS", &b)
44- register("SHIFT_JIS", &b)
45+ self.register("SHIFT-JIS", &b)
46+ self.register("SHIFT_JIS", &b)
47 end
48 end
49diff -ur ruby-1.8.3-o/lib/rexml/encodings/UNILE.rb ruby-1.8.3/lib/rexml/encodings/UNILE.rb
50--- ruby-1.8.3-o/lib/rexml/encodings/UNILE.rb 2005-09-20 21:49:27.000000000 -0600
51+++ ruby-1.8.3/lib/rexml/encodings/UNILE.rb 2005-09-20 21:55:52.000000000 -0600
52@@ -24,7 +24,7 @@
53 array_utf8.pack('U*')
54 end
55
56- register(UNILE) do |obj|
57+ self.register(UNILE) do |obj|
58 class << obj
59 alias decode decode_unile
60 alias encode encode_unile
61diff -ur ruby-1.8.3-o/lib/rexml/encodings/US-ASCII.rb ruby-1.8.3/lib/rexml/encodings/US-ASCII.rb
62--- ruby-1.8.3-o/lib/rexml/encodings/US-ASCII.rb 2005-09-20 21:49:27.000000000 -0600
63+++ ruby-1.8.3/lib/rexml/encodings/US-ASCII.rb 2005-09-20 21:55:55.000000000 -0600
64@@ -20,7 +20,7 @@
65 str.unpack('C*').pack('U*')
66 end
67
68- register("US-ASCII") do |obj|
69+ self.register("US-ASCII") do |obj|
70 class << obj
71 alias decode decode_ascii
72 alias encode encode_ascii
73diff -ur ruby-1.8.3-o/lib/rexml/encodings/UTF-16.rb ruby-1.8.3/lib/rexml/encodings/UTF-16.rb
74--- ruby-1.8.3-o/lib/rexml/encodings/UTF-16.rb 2005-09-20 21:49:27.000000000 -0600
75+++ ruby-1.8.3/lib/rexml/encodings/UTF-16.rb 2005-09-20 21:55:59.000000000 -0600
76@@ -24,7 +24,7 @@
77 array_utf8.pack('U*')
78 end
79
80- register(UTF_16) do |obj|
81+ self.register(UTF_16) do |obj|
82 class << obj
83 alias decode decode_utf16
84 alias encode encode_utf16
85diff -ur ruby-1.8.3-o/lib/rexml/encodings/UTF-8.rb ruby-1.8.3/lib/rexml/encodings/UTF-8.rb
86--- ruby-1.8.3-o/lib/rexml/encodings/UTF-8.rb 2005-09-20 21:49:27.000000000 -0600
87+++ ruby-1.8.3/lib/rexml/encodings/UTF-8.rb 2005-09-20 21:56:05.000000000 -0600
88@@ -8,7 +8,7 @@
89 str
90 end
91
92- register(UTF_8) do |obj|
93+ self.register(UTF_8) do |obj|
94 class << obj
95 alias decode decode_utf8
96 alias encode encode_utf8
This page took 0.058904 seconds and 4 git commands to generate.