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

rebar3 new crashes with unicode variables content #2644

Closed
deemytch opened this issue Nov 10, 2021 · 1 comment · Fixed by #2646
Closed

rebar3 new crashes with unicode variables content #2644

deemytch opened this issue Nov 10, 2021 · 1 comment · Fixed by #2646

Comments

@deemytch
Copy link

rebar3 crashed with commandline below when some vars are in unicode.
Archlinux, Erlang/OTP 24 [erts-12.1.2] [source] [64-bit] [smp:12:12] [ds:12:12:10] [async-threads:1] [jit]

% rebar3 new release name="tarel" desc="Тестовая приложенька" 
===> Writing tarel/apps/tarel/src/tarel_app.erl
===> Writing tarel/apps/tarel/src/tarel_sup.erl
===> Uncaught error in rebar_core. Run with DIAGNOSTIC=1 to see stacktrace or consult rebar3.crashdump
===> When submitting a bug report, please include the output of `rebar3 report "your command"`

rebar3.diagnostic.txt
rebar3.report.txt

@ferd
Copy link
Collaborator

ferd commented Nov 10, 2021

The issue is located within https://github.com/soranoba/bbmustache, specifically at https://github.com/soranoba/bbmustache/blob/7631da97b0c4de54753257e126cb6f983d0c4b83/src/bbmustache.erl#L278, where the code should likely call for unicode:characters_to_binary instead of iolist_to_binary.

Opened a sibling issue at soranoba/bbmustache#61

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 a pull request may close this issue.

2 participants