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

Improve unicode atom support #1038

Merged
merged 3 commits into from
Feb 23, 2024

Conversation

bettio
Copy link
Collaborator

@bettio bettio commented Feb 11, 2024

These changes are made under both the "Apache 2.0" and the "GNU Lesser General
Public License 2.1 or later" license terms (dual license).

SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later

@bettio bettio marked this pull request as draft February 13, 2024 13:38
@bettio bettio force-pushed the improve-unicode-atom-support branch 4 times, most recently from 72b2d4e to 1f13543 Compare February 17, 2024 10:01
@bettio bettio marked this pull request as ready for review February 17, 2024 10:11
@bettio bettio force-pushed the improve-unicode-atom-support branch 2 times, most recently from ef249bc to 87f1da5 Compare February 17, 2024 11:14
src/libAtomVM/nifs.c Outdated Show resolved Hide resolved
src/libAtomVM/nifs.c Outdated Show resolved Hide resolved
src/libAtomVM/nifs.c Show resolved Hide resolved
tests/erlang_tests/test_utf8_atoms.erl Show resolved Hide resolved
tests/erlang_tests/test_utf8_atoms.erl Show resolved Hide resolved
src/libAtomVM/nifs.c Outdated Show resolved Hide resolved
@bettio bettio force-pushed the improve-unicode-atom-support branch 3 times, most recently from af78db0 to 6598e4e Compare February 18, 2024 15:37
@bettio bettio requested a review from pguyot February 18, 2024 15:37
@bettio bettio force-pushed the improve-unicode-atom-support branch from 6598e4e to ee9e546 Compare February 18, 2024 23:10
src/libAtomVM/nifs.c Outdated Show resolved Hide resolved
src/libAtomVM/nifs.c Outdated Show resolved Hide resolved
src/libAtomVM/nifs.c Outdated Show resolved Hide resolved
@bettio bettio force-pushed the improve-unicode-atom-support branch from ee9e546 to cd3e205 Compare February 22, 2024 16:07
@bettio bettio requested a review from fadushin February 22, 2024 16:09
src/libAtomVM/interop.c Outdated Show resolved Hide resolved
Allow also utf8 and unicode encodings in addition to latin1.

Signed-off-by: Davide Bettio <[email protected]>
Both functions have been introduced with OTP23 and they default to utf8.

Signed-off-by: Davide Bettio <[email protected]>
Test conversion from binary/list to unicode atoms and viceversa, and a
number of other corner cases.

Signed-off-by: Davide Bettio <[email protected]>
@bettio bettio force-pushed the improve-unicode-atom-support branch from cd3e205 to 708f994 Compare February 23, 2024 18:43
@bettio bettio requested a review from fadushin February 23, 2024 18:44
Copy link
Collaborator

@fadushin fadushin left a comment

Choose a reason for hiding this comment

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

All of my issues have been resolved. If @pguyot is good with his issues, then I'd say let's merge.

@bettio
Copy link
Collaborator Author

bettio commented Feb 23, 2024

Merging after short telegram discussion, collected Paul's feedback on #1060.

@bettio bettio merged commit a6468b4 into atomvm:release-0.6 Feb 23, 2024
85 checks passed
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