OK,
In:
*pwd
/usr/local/shoes/ruby/lib/uri*
I first saved *common.rb *to *common.rb.05062011*.
The only reference to *UTF_7* is this: *HTML5ASCIIINCOMPAT =
[Encoding::UTF_7, Encoding::UTF_16BE, Encoding::UTF_16LE,*
I changed it to this:
H*TML5ASCIIINCOMPAT = [Encoding::Encoding::UTF_16BE, Encoding::UTF_16LE,*
....and saved *common.rb*
I then proceeded to find the difference between the original which I saved
as: *common.rb.05062011 *and the changed version: *common.rb.*
*diff -u common.rb common.rb.05062011*
--- common.rb 2011-05-06 08:24:30.934834089 -0400
+++ common.rb.05062011 2011-05-04 16:52:24.000000000 -0400
@@ -718,7 +718,7 @@
TBLENCWWWCOMP_ = {} # :nodoc:
TBLDECWWWCOMP_ = {} # :nodoc:
- HTML5ASCIIINCOMPAT = [Encoding::UTF_16BE, Encoding::UTF_16LE,
+ HTML5ASCIIINCOMPAT = [Encoding::UTF_7, Encoding::UTF_16BE,
Encoding::UTF_16LE,
Encoding::UTF_32BE, Encoding::UTF_32LE] # :nodoc:
# Encode given +str+ to URL-encoded form data.
I then proceeded to attempt a shoes execution:
*[root@oc7871667644 shoes]# bash -x ./shoes*
++ readlink -f ./shoes
+ REALPATH=/usr/local/shoes/shoes
+ APPPATH=/usr/local/shoes
+ '[' /usr/local/shoes = shoes ']'
+ '[' /usr/local/shoes = . ']'
++ awk '{ sub(/[0-9]+/, ""); print }'
++ pwd
+ '[' /usr/local/shoes = /tmp/selfgz ']'
+ cd ''
+ LD_LIBRARY_PATH=/usr/local/shoes
+ /usr/local/shoes/shoes-bin
uninitialized constant Encoding::UTF_16BE
I executed shoes again and now got:
*[root@oc7871667644 shoes]# ./shoes*
uninitialized constant Encoding::UTF_16LE
So, I decided to remove the entire record.
I proceeded to execute shoes and *BINGO! It Worked*! I got that beautiful
screen that was looking for, the "Welcome to SHOES" screen.
NOW, my dilemma is how important is that record that I commented out???
This is the record:
*HTML5ASCIIINCOMPAT = [Encoding::UTF_7, Encoding::UTF_16BE,
Encoding::UTF_16LE, Encoding::UTF_32BE, Encoding::UTF_32LE] # :nodoc:*
I have no clue is to the importance of this record.
What do you guys think?
Is it safe to write code without that record?
Thank you for your help.
···
On Thu, May 5, 2011 at 5:33 PM, <brabuhr@gmail.com> wrote:
On Thu, May 5, 2011 at 5:16 PM, <brabuhr@gmail.com> wrote:
>> */usr/local/shoes]$ ./shoes*
>> uninitialized constant Encoding::UTF_7
>
> It's interesting that the only results on Google for "uninitialized
> constant Encoding::UTF_7" all relate to Hackety Hack.
I was hesitant to suggest it, but try editing 'ruby/lib/uri/common.rb'
(I guess it would be /usr/local/shoes/ruby/lib/uri/common.rb for you)
to remove the reference to UTF_7:
$ diff -u ruby/lib/uri/common.rb.orig ruby/lib/uri/common.rb
--- ruby/lib/uri/common.rb.orig 2011-05-05 16:15:13.103236933 -0400
+++ ruby/lib/uri/common.rb 2011-05-05 16:15:31.462344142 -0400
@@ -718,8 +718,7 @@
TBLENCWWWCOMP_ = {} # :nodoc:
TBLDECWWWCOMP_ = {} # :nodoc:
- HTML5ASCIIINCOMPAT = [Encoding::UTF_7, Encoding::UTF_16BE,
Encoding::UTF_16LE,
- Encoding::UTF_32BE, Encoding::UTF_32LE] # :nodoc:
+ HTML5ASCIIINCOMPAT =
# Encode given +str+ to URL-encoded form data.
#
And see what you get then.
--
Ruby Student