From: Jim Hranicky Date: 2012-05-03T05:53:47+09:00 Subject: Psych dumping in binary I've got an app that I use ascii-8bit encoding as the default to avoid throwing errors when checking against regexps, etc. Unfortunately, this causes Psych to dump out my data structures in binary format. Would anyone be interested in a one-line patch to force dumping in non-binary format? ------ --- /opt/local/lib/ruby/1.9.1/psych/visitors/yaml_tree.rb.orig 2012-05-02 16:49:41.246503805 -0400 +++ /opt/local/lib/ruby/1.9.1/psych/visitors/yaml_tree.rb 2012-05-02 16:35:21.586503943 -0400 @@ -230,7 +230,7 @@ quote = false style = Nodes::Scalar::ANY - if binary?(o) + if binary?(o) && ! @options[:nobinary] str = [o].pack('m').chomp tag = '!binary' # FIXME: change to below when syck is removed #tag = 'tag:yaml.org,2002:binary' ------ -- Jim Hranicky IT Security Engineer Office of Information Security and Compliance University of Florida