diff options
author | Hans Bolinder <[email protected]> | 2013-03-19 13:05:49 +0100 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2013-03-19 13:05:49 +0100 |
commit | 692fa53631d5c977cc5e7635ce1df4e39d224116 (patch) | |
tree | cfa871edd7a69c0004608cb8eaf97b375bcae201 /erts | |
parent | 395e5870020df6807c6e73462e75d594a07e40a8 (diff) | |
parent | f247d246725d76412242e547e7c212bf947542f8 (diff) | |
download | otp-692fa53631d5c977cc5e7635ce1df4e39d224116.tar.gz otp-692fa53631d5c977cc5e7635ce1df4e39d224116.tar.bz2 otp-692fa53631d5c977cc5e7635ce1df4e39d224116.zip |
Merge branch 'hb/stdlib/escript_unicode/OTP-10951' into maint
* hb/stdlib/escript_unicode/OTP-10951:
Let escript recognize an encoding comment on the second line
Diffstat (limited to 'erts')
-rw-r--r-- | erts/doc/src/escript.xml | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/erts/doc/src/escript.xml b/erts/doc/src/escript.xml index 66e904f64f..9e2a87dde6 100644 --- a/erts/doc/src/escript.xml +++ b/erts/doc/src/escript.xml @@ -4,7 +4,7 @@ <comref> <header> <copyright> - <year>2007</year><year>2011</year> + <year>2007</year><year>2013</year> <holder>Ericsson AB. All Rights Reserved.</holder> </copyright> <legalnotice> @@ -85,6 +85,11 @@ $ <input>escript factorial 5</input> </pre> enter the major mode for editing Erlang source files. If the directive is present it must be located on the second line.</p> + + <p>If there is a comment selecting the <seealso + marker="stdlib:epp#encoding">encoding</seealso> it can be + located on the second line.</p> + <p>On the third line (or second line depending on the presence of the Emacs directive), it is possible to give arguments to the emulator, such as </p> @@ -133,7 +138,9 @@ halt(1).</pre> <pre> -include_lib("kernel/include/file.hrl").</pre> <p>to include the record definitions for the records used by the - <c>file:read_link_info/1</c> function.</p> + <c>file:read_link_info/1</c> function. You can also select + encoding here, but if there is a valid encoding comment on + the second line it takes precedence.</p> <p>The script will be checked for syntactic and semantic correctness before being run. If there are warnings (such as |