diff options
author | Peter Zhu <peter@peterzhu.ca> | 2022-09-27 14:54:09 -0400 |
---|---|---|
committer | Peter Zhu <peter@peterzhu.ca> | 2022-09-28 09:05:23 -0400 |
commit | 28a572f8bffe54226a7ad3fae814c1c92b5036e6 (patch) | |
tree | 8d7149c66727c97c4f6366e3de53a6ef047c84b2 /test/test_prettyprint.rb | |
parent | 6f8d17e43c7b9b3b8bf42df0ef1ca085080b65f0 (diff) | |
download | ruby-28a572f8bffe54226a7ad3fae814c1c92b5036e6.tar.gz |
Fix bug when slicing a string with broken encoding
Commit aa2a428 introduced a bug where non-embedded string slices copied
the encoding of the original string. If the original string had a broken
encoding but the slice has valid encoding, then the slice would be
incorrectly marked as broken encoding.
Diffstat (limited to 'test/test_prettyprint.rb')
0 files changed, 0 insertions, 0 deletions