diff options
author | Hans Bolinder <[email protected]> | 2013-03-28 13:06:40 +0100 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2013-03-29 08:50:25 +0100 |
commit | 852895812646c73f9bac8163e9b34acaeb62d518 (patch) | |
tree | 0cf346dd351b73a9b040c547a570ac80ddf38b06 /lib/stdlib/src/erl_parse.yrl | |
parent | fe7e36baf92a92198b21c698c62f61acb5dee9af (diff) | |
download | otp-852895812646c73f9bac8163e9b34acaeb62d518.tar.gz otp-852895812646c73f9bac8163e9b34acaeb62d518.tar.bz2 otp-852895812646c73f9bac8163e9b34acaeb62d518.zip |
Document erl_parse:abstract/2
A bug has been fixed: when given the option {encoding,utf8} a list of
floating point numbers (in the correct interval) was mistakenly
returned as a string.
Diffstat (limited to 'lib/stdlib/src/erl_parse.yrl')
-rw-r--r-- | lib/stdlib/src/erl_parse.yrl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/stdlib/src/erl_parse.yrl b/lib/stdlib/src/erl_parse.yrl index 9ff25fcbc5..7145b0858f 100644 --- a/lib/stdlib/src/erl_parse.yrl +++ b/lib/stdlib/src/erl_parse.yrl @@ -887,6 +887,7 @@ abstract(T, Options) when is_list(Options) -> abstract(T, Line, Encoding). -define(UNICODE(C), + is_integer(C) andalso (C >= 0 andalso C < 16#D800 orelse C > 16#DFFF andalso C < 16#FFFE orelse C > 16#FFFF andalso C =< 16#10FFFF)). |