Skip to content

Commit 6510efc

Browse files
committed
Fix chilled string warning
1 parent dbad851 commit 6510efc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/hash/shared/to_s.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
eval(utf8_hash).inspect.should == utf8_hash
116116

117117
Encoding.default_external = Encoding::Windows_31J
118-
sjis_hash = "{\x87]: 1}".force_encoding('sjis')
118+
sjis_hash = "{\x87]: 1}".dup.force_encoding('sjis')
119119
eval(sjis_hash).inspect.should == sjis_hash
120120
ensure
121121
Encoding.default_external = external

0 commit comments

Comments
 (0)