Issue #3666 has been updated by Luis Lavena.

File 0001-Fix-3666-backporting-the-needed-changes-from-r26311.patch added=


Hello,

Find attached a patch with the direct backport of r26311 into ruby_1_8_7 =
branch.

Thank you.

----------------------------------------
http://redmine.ruby-lang.org/issues/show/3666

----------------------------------------
http://redmine.ruby-lang.org
RnJvbSA2NTRhNDYzYmM2NjM2ZjJiNjFmZGQ5ZWY4MWRiMTBhMjU4MDdkMTc2
IE1vbiBTZXAgMTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBMdWlzIExhdmVuYSA8
bHVpc2xhdmVuYUBnbWFpbC5jb20+CkRhdGU6IFN1biwgMTIgU2VwIDIwMTAg
MTc6MDM6NDMgLTAzMDAKU3ViamVjdDogW1BBVENIXSBGaXggIzM2NjYgYmFj
a3BvcnRpbmcgdGhlIG5lZWRlZCBjaGFuZ2VzIGZyb20gcjI2MzExCgotLS0K
IGNvbmZpZ3VyZS5pbiAgfCAgICA5ICsrKysrKysrLQogbWlzc2luZy5oICAg
ICB8ICAgIDcgKysrKysrKwogd2luMzIvd2luMzIuaCB8ICAgIDYgKystLS0t
CiAzIGZpbGVzIGNoYW5nZWQsIDE3IGluc2VydGlvbnMoKyksIDUgZGVsZXRp
b25zKC0pCgpkaWZmIC0tZ2l0IGEvY29uZmlndXJlLmluIGIvY29uZmlndXJl
LmluCmluZGV4IGQ3ZWQyMWUuLmYxZTY5ZjkgMTAwNjQ0Ci0tLSBhL2NvbmZp
Z3VyZS5pbgorKysgYi9jb25maWd1cmUuaW4KQEAgLTUyMiw3ICs1MjIsNyBA
QCBBQ19DSEVDS19IRUFERVJTKHN0ZGxpYi5oIHN0cmluZy5oIHVuaXN0ZC5o
IGxpbWl0cy5oIHN5cy9maWxlLmggc3lzL2lvY3RsLmggc3lzLwogCQkgZmNu
dGwuaCBzeXMvZmNudGwuaCBzeXMvc2VsZWN0Lmggc3lzL3RpbWUuaCBzeXMv
dGltZXMuaCBzeXMvcGFyYW0uaFwKIAkJIHN5c2NhbGwuaCB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