This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse the repository at this point in the history
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.