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

Don't crash on printing non-ASCII characters #2619

Merged
merged 1 commit into from
Sep 27, 2021

Conversation

paulo-ferraz-oliveira
Copy link
Contributor

@paulo-ferraz-oliveira paulo-ferraz-oliveira commented Sep 18, 2021

Closes #2618.

~p uses ' to print non-ASCII atoms, so that's avoided.
~ts is for the UTF-8 stuff.

This would go nicely with tsloughter/providers#13, but it can be merged before that one's merged and tagged, too.

Also, I'm not sure if/how you wanna test this, so I'll wait for further guidance.

@ferd ferd merged commit 1a35a6d into erlang:master Sep 27, 2021
@@ -137,7 +137,7 @@ process_command(State, Command) ->
do([], State) ->
{ok, State};
do([ProviderName | Rest], State) ->
?DEBUG("Running provider: ~p", [friendly_provider(ProviderName)]),
?DEBUG("Running provider: ~tp", [friendly_provider(ProviderName)]),
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be ~ts or ~tp?

@paulo-ferraz-oliveira paulo-ferraz-oliveira deleted the fix/for-utf8 branch September 28, 2021 14:37
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.

Broken emoji support
3 participants