aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2017-11-30 16:55:47 +0100
committerRickard Green <[email protected]>2017-11-30 16:55:47 +0100
commitca5d2063fd7239a4c5ee6f2db9f91bbbfc542556 (patch)
treea270041e8d93d7c8da9322cf05a95da8e7e21a2b
parentec4c31031cce6db591d16f9da52c2a6cc4b90ad3 (diff)
parentd6de4a147388d609066d202ff68301f1cdb24cff (diff)
downloadotp-ca5d2063fd7239a4c5ee6f2db9f91bbbfc542556.tar.gz
otp-ca5d2063fd7239a4c5ee6f2db9f91bbbfc542556.tar.bz2
otp-ca5d2063fd7239a4c5ee6f2db9f91bbbfc542556.zip
Merge branch 'rickard/unicode-doc/ERL-516/OTP-14798' into maint
* rickard/unicode-doc/ERL-516/OTP-14798: Clarification in doc of unicode:characters_to_list/2
-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