From a6ecd3895cba2d2da696e0cf660df4d6f71ba339 Mon Sep 17 00:00:00 2001 From: Siri Hansen Date: Mon, 15 Apr 2013 15:33:56 +0200 Subject: Add documentation of w, i and e addition to +fnu and +fna switches to erl These were documented in the stdlib user's guide, but not in the reference manual for erl. This has now been corrected. --- erts/doc/src/erl.xml | 36 ++++++++++++++++++++++++++++-------- 1 file changed, 28 insertions(+), 8 deletions(-) (limited to 'erts') diff --git a/erts/doc/src/erl.xml b/erts/doc/src/erl.xml index 1f7c5b5a7f..a68e62d051 100644 --- a/erts/doc/src/erl.xml +++ b/erts/doc/src/erl.xml @@ -536,15 +536,35 @@

The VM works with file names as if they are encoded using the ISO-latin-1 encoding, disallowing Unicode characters with codepoints beyond 255. This is default on operating systems that have transparent file naming, i.e. all Unixes except MacOSX.

+

See STDLIB User's Guide for more infomation about unicode file names.

- +

The VM works with file names as if they are encoded using UTF-8 (or some other system specific Unicode encoding). This is the default on operating systems that enforce Unicode encoding, i.e. Windows and MacOSX.

-

By enabling Unicode file name translation on systems where this is not default, you open up to the possibility that some file names can not be interpreted by the VM and therefore will be returned to the program as raw binaries. The option is therefore considered experimental.

-
- - -

Selection between +fnl and +fnu is done based on the current locale settings in the OS, meaning that if you have set your terminal for UTF-8 encoding, the filesystem is expected to use the same encoding for filenames (use with care).

+

The +fnu switch can be followed by w, + i, or e to control the way wrongly encoded file + names are to be reported. w means that a warning is + sent to the error_logger whenever a wrongly encoded + file name is "skipped" in directory listings, i means + that those wrongly encoded file names are silently ignored and + e means that the API function will return an error + whenever a wrongly encoded file (or directory) name is + encountered. w is the default. Note that + file:read_link/1 will always return an error if the + link points to an invalid file name.

+

See STDLIB User's Guide for more infomation about unicode file names.

+
+ + +

Selection between +fnl and +fnu is done based on the current locale settings in the OS, meaning that if you have set your terminal for UTF-8 encoding, the filesystem is expected to use the same encoding for file names (use with care).

+

The +fna switch can be followed by w, + i, or e. This will have effect if the locale + settings cause the behavior of +fnu to be selected. + See the description of +fnu above. If the locale + settings cause the behavior of +fnl to be selected, + then w, i, or e will not have any + effect.

+

See STDLIB User's Guide for more infomation about unicode file names.

@@ -571,9 +591,9 @@ -

Don't load information about source filenames and line numbers. +

Don't load information about source file names and line numbers. This will save some memory, but exceptions will not contain - information about the filenames and line numbers. + information about the file names and line numbers.

-- cgit v1.2.3