We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbad851 commit 6510efcCopy full SHA for 6510efc
1 file changed
core/hash/shared/to_s.rb
@@ -115,7 +115,7 @@
115
eval(utf8_hash).inspect.should == utf8_hash
116
117
Encoding.default_external = Encoding::Windows_31J
118
- sjis_hash = "{\x87]: 1}".force_encoding('sjis')
+ sjis_hash = "{\x87]: 1}".dup.force_encoding('sjis')
119
eval(sjis_hash).inspect.should == sjis_hash
120
ensure
121
Encoding.default_external = external
0 commit comments