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

Closed
wants to merge 1 commit into
from

Projects

None yet

2 participants

@richcarl
Contributor
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.

Richard Carlsson Add default_encoding option to epp and compiler, generalizing the epp…
… 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.
b19aea3
@bjorng bjorng closed this Mar 20, 2014
@richcarl richcarl deleted the richcarl:encoding-schmencoding branch Mar 20, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment