-
commit-queue@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=91212 Patch by Simon Pena <spena@igalia.com> on 2012-10-03 Reviewed by Hajime Morita. ruby1.9 changed the way it handles encoding, so the gsub method used when normalizing line ending complains of invalid byte sequence in UTF-8. This patch uses the "encode" string method for versions of Ruby >= 1.9 to provide the encoding conversion (keeping the current implementation in Ruby 1.8). * PrettyPatch/PrettyPatch.rb: Use the "encode" string method for encoding conversion when the Ruby version is >= 1.9. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@130276 268f45cc-cd09-0410-ab3c-d52691b4dbfc
80d26492