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

WIP Optimized utf8 #1051

Open
wants to merge 4 commits into
base: release-0.6
Choose a base branch
from
Open

WIP Optimized utf8 #1051

wants to merge 4 commits into from

Commits on Feb 17, 2024

  1. Improve utf8 atom support

    Allow also utf8 and unicode encodings in addition to latin1.
    
    Signed-off-by: Davide Bettio <davide@uninstall.it>
    bettio committed Feb 17, 2024
    Configuration menu
    Copy the full SHA
    d01ea7b View commit details
    Browse the repository at this point in the history
  2. Add binary_to_atom/1 and binary_to_exiting_atom/1

    Both functions have been introduced with OTP23 and they default to utf8.
    
    Signed-off-by: Davide Bettio <davide@uninstall.it>
    bettio committed Feb 17, 2024
    Configuration menu
    Copy the full SHA
    0e36265 View commit details
    Browse the repository at this point in the history
  3. tests: add test_utf8_atoms

    Test conversion from binary/list to unicode atoms and viceversa, and a
    number of other corner cases.
    
    Signed-off-by: Davide Bettio <davide@uninstall.it>
    bettio committed Feb 17, 2024
    Configuration menu
    Copy the full SHA
    87f1da5 View commit details
    Browse the repository at this point in the history
  4. unicode: add "Flexible and Economical UTF-8 Decoder"

    Add utf8 decoder taken from
    http://bjoern.hoehrmann.de/utf-8/decoder/dfa/ by Björn Höhrmann, under
    MIT license.
    
    Signed-off-by: Davide Bettio <davide@uninstall.it>
    bettio committed Feb 17, 2024
    Configuration menu
    Copy the full SHA
    65f7347 View commit details
    Browse the repository at this point in the history