aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2017-11-30 16:54:56 +0100
committerRickard Green <[email protected]>2017-11-30 16:54:56 +0100
commitd6de4a147388d609066d202ff68301f1cdb24cff (patch)
treea270041e8d93d7c8da9322cf05a95da8e7e21a2b /lib
parentec4c31031cce6db591d16f9da52c2a6cc4b90ad3 (diff)
downloadotp-d6de4a147388d609066d202ff68301f1cdb24cff.tar.gz
otp-d6de4a147388d609066d202ff68301f1cdb24cff.tar.bz2
otp-d6de4a147388d609066d202ff68301f1cdb24cff.zip
Clarification in doc of unicode:characters_to_list/2
Diffstat (limited to 'lib')
-rw-r--r--lib/stdlib/doc/src/unicode.xml9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/stdlib/doc/src/unicode.xml b/lib/stdlib/doc/src/unicode.xml
index e86f45431f..d822aca89c 100644
--- a/lib/stdlib/doc/src/unicode.xml
+++ b/lib/stdlib/doc/src/unicode.xml
@@ -239,8 +239,13 @@
<c><anno>InEncoding</anno></c>.</p>
</item>
</list>
- <p>Only when <c><anno>InEncoding</anno></c> is one of the UTF
- encodings, integers in the list are allowed to be &gt; 255.</p>
+ <p>
+ Note that integers in the list always represent code points
+ regardless of <c><anno>InEncoding</anno></c> passed. If
+ <c><anno>InEncoding</anno> latin1</c> is passed, only code
+ points &lt; 256 are allowed; otherwise, all valid unicode code
+ points are allowed.
+ </p>
<p>If <c><anno>InEncoding</anno></c> is <c>latin1</c>, parameter
<c><anno>Data</anno></c> corresponds to the <c>iodata()</c> type,
but for <c>unicode</c>, parameter <c><anno>Data</anno></c> can