Skip to content

Ensure that peer node deals with unicode#10826

Merged
michaelklishin merged 2 commits into
mainfrom
peer-discovery-utf8-settings
Feb 23, 2026
Merged

Ensure that peer node deals with unicode#10826
michaelklishin merged 2 commits into
mainfrom
peer-discovery-utf8-settings

Conversation

@lukebakken

Copy link
Copy Markdown
Collaborator

Follow-up to #10759
Related to #10194
Related to erlang/otp#8289

@lukebakken lukebakken self-assigned this Mar 21, 2024
@lukebakken
lukebakken requested a review from dumbbell March 21, 2024 17:23
@lukebakken
lukebakken force-pushed the peer-disc-temporary-nodes-and-inetrc branch from 41d3c68 to 3fd96a0 Compare March 22, 2024 16:12
@lukebakken
lukebakken force-pushed the peer-discovery-utf8-settings branch from 2c38a00 to d885abe Compare March 22, 2024 16:13
@michaelklishin
michaelklishin force-pushed the peer-disc-temporary-nodes-and-inetrc branch from 3fd96a0 to 1bcfa47 Compare March 25, 2024 19:19
Base automatically changed from peer-disc-temporary-nodes-and-inetrc to main March 25, 2024 22:44
@lukebakken
lukebakken removed the request for review from dumbbell October 27, 2025 14:36
@lukebakken
lukebakken force-pushed the peer-discovery-utf8-settings branch from d885abe to 5ec1824 Compare October 27, 2025 14:36
@lukebakken
lukebakken force-pushed the peer-discovery-utf8-settings branch from 5ec1824 to 151f3aa Compare February 23, 2026 16:24
lukebakken added a commit to rabbitmq/rabbitmq-website that referenced this pull request Feb 23, 2026
The Erlang preprocessor interprets files as Latin-1 by default. Without
the `%% coding: utf-8` directive, non-ASCII characters in values such as
the `password` field are not parsed correctly.

Add the directive and an explanatory comment to both the Linux and
Windows `inter_node_tls.config` example blocks.

Related to erlang/otp#8289
Related to rabbitmq/rabbitmq-server#10826
`application:get_env(kernel, inetrc)` can return an atom when the user
specifies the filename without Erlang-style quoting. The existing call
to `unicode:characters_to_list/1` crashes with `badarg` on atoms.

Add a function head that converts atoms to lists before falling through
to the clause that handles unicode conversion.

Follow-up to #10826
@lukebakken
lukebakken marked this pull request as ready for review February 23, 2026 16:43

@dumbbell dumbbell left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me, thanks!

@michaelklishin
michaelklishin merged commit 7ae4dab into main Feb 23, 2026
182 of 183 checks passed
@michaelklishin
michaelklishin deleted the peer-discovery-utf8-settings branch February 23, 2026 19:17
@lukebakken

Copy link
Copy Markdown
Collaborator Author

Thanks! Better late than never! I may be the only person to have ever noticed this 😸

michaelklishin pushed a commit that referenced this pull request Feb 24, 2026
`application:get_env(kernel, inetrc)` can return an atom when the user
specifies the filename without Erlang-style quoting. The existing call
to `unicode:characters_to_list/1` crashes with `badarg` on atoms.

Add a function head that converts atoms to lists before falling through
to the clause that handles unicode conversion.

Follow-up to #10826
michaelklishin pushed a commit that referenced this pull request Feb 24, 2026
`application:get_env(kernel, inetrc)` can return an atom when the user
specifies the filename without Erlang-style quoting. The existing call
to `unicode:characters_to_list/1` crashes with `badarg` on atoms.

Add a function head that converts atoms to lists before falling through
to the clause that handles unicode conversion.

Follow-up to #10826
michaelklishin pushed a commit that referenced this pull request Feb 24, 2026
`application:get_env(kernel, inetrc)` can return an atom when the user
specifies the filename without Erlang-style quoting. The existing call
to `unicode:characters_to_list/1` crashes with `badarg` on atoms.

Add a function head that converts atoms to lists before falling through
to the clause that handles unicode conversion.

Follow-up to #10826
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants