cardmagic / simple-rss

A simple, flexible, extensible, and liberal RSS and Atom reader for Ruby. It is designed to be backwards compatible with the standard RSS parser, but will never do RSS generation.
https://github.com/cardmagic/simple-rss
Other
225 stars 68 forks source link

Regex match bug - Ruby 1.9.2 #4

Closed kathgironpe closed 13 years ago

kathgironpe commented 13 years ago

/Users/katz/.rvm/gems/ruby-1.9.2-preview3/gems/simple-rss-1.2.3/lib/simple-rss.rb:155: warning: regexp match /.../n against to UTF-8 string /Users/katz/.rvm/gems/ruby-1.9.2-preview3/gems/simple-rss-1.2.3/lib/simple-rss.rb:155: warning: regexp match /.../n against to UTF-8 string

My RVM info: ruby: interpreter: "ruby" version: "1.9.2dev" date: "2010-05-31" platform: "x86_64-darwin10.4.0" patchlevel: "2010-05-31 revision 28117" full_version: "ruby 1.9.2dev (2010-05-31 revision 28117) [x86_64-darwin10.4.0]"

homes: gem: "/Users/katz/.rvm/gems/ruby-1.9.2-preview3" ruby: "/Users/katz/.rvm/rubies/ruby-1.9.2-preview3"

binaries: ruby: "/Users/katz/.rvm/rubies/ruby-1.9.2-preview3/bin/ruby" irb: "/Users/katz/.rvm/rubies/ruby-1.9.2-preview3/bin/irb" gem: "/Users/katz/.rvm/rubies/ruby-1.9.2-preview3/bin/gem" rake: "/Users/katz/.rvm/gems/ruby-1.9.2-preview3/bin/rake"

For Ruby 1.9.2, I think this issue has to do with the format. Sometimes I had to fix an issue by forcing ASCII format.

cardmagic commented 13 years ago

Fixed in http://github.com/cardmagic/simple-rss/commit/ef0d5db568faa75073a43f45d5f544d4414a8ea3