* io.c (rb_open_file): encoding in mode string was ignored if perm is
[ruby-svn.git] / ext / purelib.rb
blobdbe514c34ab232a0e549e74c78f0a656b3f9527e
1 nul = nil
2 $:.each_with_index {|path, index|
3   if /\A(?:\.\/)*-\z/ =~ path
4     nul = index
5     break
6   end
8 if nul
9   $:[nul..-1] = ["."]
10 end