You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Restore broken optimization of unicode conversion function
When used to convert from `latin1` to `utf8` or vice versa, the
`unicode:characters_to_binary/3` function would return the original
binary unchanged if it only contained 7-bit ASCII characters.
For example:
unicode:characters_to_binary("abc", latin1, utf8)
To determine whether the input was a binary with only 7-bit
characters, the undocument BIF `unicode:bin_is_7bit/1` is used.
In Erlang/OTP 27, this optimization broke because
`bin_is_7bit/1` accidentally started to always return `false`.
Resolves#10072
0 commit comments