Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERL-633: io_lib:format/2 incompatibility between 21-rc1 and 21-rc2 #3555

Closed
OTP-Maintainer opened this issue Jun 3, 2018 · 1 comment
Closed
Assignees
Labels
not a bug Issue is determined as not a bug by OTP priority:medium team:VM Assigned to OTP team VM

Comments

@OTP-Maintainer
Copy link

Original reporter: dane
Affected version: OTP-20.1
Component: stdlib
Migrated from: https://bugs.erlang.org/browse/ERL-633


G'Day,
This commit:
https://github.com/erlang/otp/commit/29a347ffd408c68861a914db4efc75d8ea20a762
seems to change behaviour of:
io_lib:format("~.16B", [1521415153])
now it returns "5AAEF3F1"
while with this commit reverted it's
["5AAEF3F1"]

Problem seems to be somewhere in io_lib_format:build() function.
@OTP-Maintainer
Copy link
Author

hasse said:

Hi,

The change is compatible with respect to the contract, so it's not a bug.

You should not rely on the exact return value from the formatting
functions. Use lists:flatten/1 to get a string(), which you can
compare and traverse.

BR

@OTP-Maintainer OTP-Maintainer added not a bug Issue is determined as not a bug by OTP team:VM Assigned to OTP team VM priority:medium labels Feb 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not a bug Issue is determined as not a bug by OTP priority:medium team:VM Assigned to OTP team VM
Projects
None yet
Development

No branches or pull requests

2 participants