appoxy/jeweler — pull request #2 by martinkozak (2011-12-13 15:51:40+00:00)
Title: Path encoding issues between Ruby 1.9.2 and Ruby 1.9.3

Ruby 1.9.3's File#join returns strings in ASCII encoding instead of UTF-8. It causes problems when base path contains some UTF-8 characters (which can be quite usuall on UTF-8 aware systems). Also the 'git' gem is hit.

I've inserted conditional converting their outputs to UTF-8 on Ruby 1.9.x by way which keeps compatibility with 1.8.x. Disadvantage of this implementation is it doesn't support Ruby 1.7 and lower, but I think, it isn't big issue (and it can be rather easilly corrected by some more complex Ruby version matching than simple Regex).