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

Add default_encoding option to epp and compiler, generalizing the epp API #276

Closed
wants to merge 1 commit into from

Conversation

richcarl
Copy link
Contributor

@richcarl richcarl commented Mar 7, 2014

Make it possible to pass arbitrary options to epp:open(), and to get extra
information in the result from opening a file. Use this to add the option
{default_encoding, latin1|utf8} and to get any found encoding annotation in
the result from open(). Adapt compiler to use this new API, avoiding the
extra call to epp:read_encoding(), and passing the default_encoding option
on to epp. This enables running "erlc +'{default_encoding,latin1}'" to
compile legacy code.

… API

Make it possible to pass arbitrary options to epp:open(), and to get extra
information in the result from opening a file. Use this to add the option
{default_encoding, latin1|utf8} and to get any found encoding annotation in
the result from open(). Adapt compiler to use this new API, avoiding the
extra call to epp:read_encoding(), and passing the default_encoding option
on to epp. This enables running "erlc +'{default_encoding,latin1}'" to
compile legacy code.
@bjorng bjorng closed this Mar 20, 2014
@richcarl richcarl deleted the encoding-schmencoding branch March 20, 2014 11:00
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.

None yet

2 participants