Issue #6377 has been updated by tenderlovemaking (Aaron Patterson).

Assignee changed from tenderlovemaking (Aaron Patterson) to nobu (Nobuyoshi Nakada)

Nobu, do you know why the paths on LOADED_FEATURES are encoded as ASCII-8BIT? Shouldn't they be tagged with the filesystem encoding?  Thanks.
----------------------------------------
Bug #6377: $LOADED_FEATURES entry via YAML is binary data?
https://bugs.ruby-lang.org/issues/6377#change-28959

Author: trans (Thomas Sawyer)
Status: Assigned
Priority: Normal
Assignee: nobu (Nobuyoshi Nakada)
Category: lib
Target version: 1.9.3
ruby -v: ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-linux]


=begin
While working with $LOADED_FEATURES, came across this odd result:

  trans@logisys:courtier$ irb

  irb(main):001:0> require 'yaml'

  irb(main):002:0> puts $LOADED_FEATURES.join("\n")
  enumerator.so
  /home/trans/.local/lib/ry/rubies/1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/enc/encdb.so
  /home/trans/.local/lib/ry/rubies/1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/enc/trans/transdb.so
  /home/trans/.local/lib/ry/rubies/1.9.3-p125/lib/ruby/1.9.1/rubygems/defaults.rb
  ...

  irb(main):003:0> y $LOADED_FEATURES
  ---
  - enumerator.so
  - !binary |-
    L2hvbWUvdHJhbnMvLmxvY2FsL2xpYi9yeS9ydWJpZXMvMS45LjMtcDEyNS9s
    aWIvcnVieS8xLjkuMS94ODZfNjQtbGludXgvZW5jL2VuY2RiLnNv
  - /home/trans/.local/lib/ry/rubies/1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/enc/trans/transdb.so
  - /home/trans/.local/lib/ry/rubies/1.9.3-p125/lib/ruby/1.9.1/rubygems/defaults.rb
  ...

=end



-- 
http://bugs.ruby-lang.org/