From: Eric Hodel Date: 2011-02-02T08:43:15+09:00 Subject: [ruby-core:35033] [Ruby 1.9-Bug#4340] Encoding of result string for String#gsub is not consistent --mimepart_4d489a9161953_59895829330286d Content-Type: text/plain Content-Transfer-Encoding: Quoted-printable Content-Disposition: inline Issue #4340 has been updated by Eric Hodel. File string.c.gsub.encoding.patch added The attached patch fixes this problem, may I commit? ---------------------------------------- http://redmine.ruby-lang.org/issues/show/4340 ---------------------------------------- http://redmine.ruby-lang.org --mimepart_4d489a9161953_59895829330286d Content-Type: application/octet-stream; name=string.c.gsub.encoding.patch Content-Transfer-Encoding: Base64 Content-Disposition: attachment; filename=string.c.gsub.encoding.patch SW5kZXg6IHN0cmluZy5jCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIHN0 cmluZy5jCShyZXZpc2lvbiAzMDc1MSkKKysrIHN0cmluZy5jCSh3b3JraW5n IGNvcHkpCkBAIC0zNzI4LDYgKzM3MjgsNyBAQCBzdHJfZ3N1YihpbnQgYXJn YywgVkFMVUUgKmFyZ3YsIFZBTFVFIHN0CiAgICAgc2xlbiA9IFJTVFJJTkdf TEVOKHN0cik7CiAgICAgY3AgPSBzcDsKICAgICBzdHJfZW5jID0gU1RSX0VO Q19HRVQoc3RyKTsKKyAgICByYl9lbmNfYXNzb2NpYXRlKGRlc3QsIHN0cl9l bmMpOwogCiAgICAgZG8gewogCW4rKzsK --mimepart_4d489a9161953_59895829330286d--