Issue #6377 has been updated by nobu (Nobuyoshi Nakada).

Status changed from Open to Assigned
Assignee set to tenderlovemaking (Aaron Patterson)

Sounds like psych deals with ASCII-8BIT strings as binary data always, even if 7bit only.
----------------------------------------
Bug #6377: $LOADED_FEATURES entry via YAML is binary data?
https://bugs.ruby-lang.org/issues/6377#change-26314

Author: trans (Thomas Sawyer)
Status: Assigned
Priority: Normal
Assignee: tenderlovemaking (Aaron Patterson)
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/