Actions
Bug #13874
closedString#valid_encoding? has side effects
Bug #13874:
String#valid_encoding? has side effects
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin16]
Backport:
Description
I noticed the result of String#encode changes after a call to String#valid_encoding?. Other side effects were not visible so far.
Based on the documentation and intuition I would expect #valid_encoding? to be an operation without side effects.
Actions