diff options
author | Hans Bolinder <[email protected]> | 2017-04-19 16:10:15 +0200 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2017-04-24 14:51:03 +0200 |
commit | ef0dbc4f2a43d629d086c3e2b9a762bbc00d034b (patch) | |
tree | de3dd7b8d268f0819453920f8b6e8efb7212477e /lib/stdlib/doc/src/io_lib.xml | |
parent | 739bca3fc267c55d84c8f5c193d16c0b2a7eee13 (diff) | |
download | otp-ef0dbc4f2a43d629d086c3e2b9a762bbc00d034b.tar.gz otp-ef0dbc4f2a43d629d086c3e2b9a762bbc00d034b.tar.bz2 otp-ef0dbc4f2a43d629d086c3e2b9a762bbc00d034b.zip |
stdlib: Add Unicode modifier t to control sequences w and W
As of the introduction of Unicode characters in atoms, the control
sequences 'w' and 'W' can return non-Latin-1 characters, unless some
measure is taken.
This commit makes sure that '~w' and '~W' always return Latin-1
characters, or bytes, which can be output to ports or written to raw
files.
The Unicode translation modifier 't' is needed to return non-Latin-1
characters.
Diffstat (limited to 'lib/stdlib/doc/src/io_lib.xml')
-rw-r--r-- | lib/stdlib/doc/src/io_lib.xml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/stdlib/doc/src/io_lib.xml b/lib/stdlib/doc/src/io_lib.xml index 5ae400da62..bc1d77ac83 100644 --- a/lib/stdlib/doc/src/io_lib.xml +++ b/lib/stdlib/doc/src/io_lib.xml @@ -356,7 +356,8 @@ <func> <name name="write" arity="1"/> - <name name="write" arity="2"/> + <name name="write" arity="2" clause_i="1"/> + <name name="write" arity="2" clause_i="2"/> <fsummary>Write a term.</fsummary> <desc> <p>Returns a character list that represents <c><anno>Term</anno></c>. |