-
-
Notifications
You must be signed in to change notification settings - Fork 922
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Align our strConvEncOpts with MRI's.
When there's an error from encoding, MRI's version of this function just returns the incoming bytes as its result. Ours used a path that always raises an error when transcoding fails. The new version uses a path more in line with MRI that requires an out buffer and returns a result, so we can handle it appropriately. Fixes #2419.
- Loading branch information
Showing
2 changed files
with
28 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters