-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unmarshaled hash with non-ascii keys is corrupted #1624
Comments
Seems to happen when using truffleruby-head-ubuntu-18.04 with Addressable (build ran 2 days ago): https://github.com/sporkmonger/addressable/runs/2977469877?check_suite_focus=true#step:7:87 The Marshal dump is from 2012: sporkmonger/addressable@1eb715d truffleruby-21.1.0-ubuntu-18.04 works fine though: https://github.com/sporkmonger/addressable/runs/2988483622?check_suite_focus=true#step:5:13 |
Thanks for the report! We'll look into that. |
The problem in the original example is that some of the Symbols get a BINARY encoding when reloaded: v = {:€a=>nil, :€c=>nil, :€h=>nil}
p v
r = Marshal.load(Marshal.dump(v))
p r
p r == v
p v.keys.map(&:encoding)
p r.keys.map(&:encoding)
21.1 has that issue too. |
@dentarg I tried to reproduce but the addressable specs pass for me locally. |
…ding (#1624) PullRequest: truffleruby/2781
This issue is similar to jruby/jruby#5523 reported by @larskanis. But it behaves a bit differently in TruffleRuby. There was the same issue with arrays already fixed in TruffleRuby #1530
The used code is from @larskanis
TruffleRuby 1.0.0-RC13
Ruby 2.5.3
The text was updated successfully, but these errors were encountered: