Skip to content

Conversation

@rocky
Copy link
Member

@rocky rocky commented Apr 18, 2021

But let's at least not crash when it is used.

But let's at least not crash when it is used.
@rocky rocky requested a review from mmatera April 18, 2021 08:56
encoding = options["System`CharacterEncoding"]
text = value.format(evaluation, form.get_name(), encoding=encoding)
if form.has_form("Rule", 2) and form.leaves[0] == Symbol("System`CharacterEncoding"):
return evaluation.message("ToString", "encoding")
Copy link
Contributor

Choose a reason for hiding this comment

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

I think before this message, an if clause checking that encoding is not available is missing. Otherwise, the next line is never executed.

@rocky rocky force-pushed the master branch 2 times, most recently from b007e8c to ef16eb6 Compare May 19, 2021 22:40
@rocky rocky force-pushed the master branch 5 times, most recently from 8367d69 to 83bb068 Compare June 7, 2021 21:01
@rocky rocky force-pushed the master branch 2 times, most recently from 9570fdd to 499f1bf Compare June 26, 2021 14:12
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