aboutsummaryrefslogtreecommitdiffstats
path: root/erts
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2013-03-19 13:07:34 +0100
committerHans Bolinder <[email protected]>2013-03-19 13:07:34 +0100
commit3f9a86fb6b9598a7172150e3a272d40498c8e3b4 (patch)
tree0eecba2dd2cbce90fe3c5b79077c1f24477583ea /erts
parent366b3ecee7e6cab9da31a49240a3051679593414 (diff)
parent692fa53631d5c977cc5e7635ce1df4e39d224116 (diff)
downloadotp-3f9a86fb6b9598a7172150e3a272d40498c8e3b4.tar.gz
otp-3f9a86fb6b9598a7172150e3a272d40498c8e3b4.tar.bz2
otp-3f9a86fb6b9598a7172150e3a272d40498c8e3b4.zip
Merge branch 'maint'
* maint: Let escript recognize an encoding comment on the second line
Diffstat (limited to 'erts')
-rw-r--r--erts/doc/src/escript.xml11
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