aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/src
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2013-03-28 13:06:40 +0100
committerHans Bolinder <[email protected]>2013-03-29 08:50:25 +0100
commit852895812646c73f9bac8163e9b34acaeb62d518 (patch)
tree0cf346dd351b73a9b040c547a570ac80ddf38b06 /lib/stdlib/src
parentfe7e36baf92a92198b21c698c62f61acb5dee9af (diff)
downloadotp-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')
-rw-r--r--lib/stdlib/src/erl_parse.yrl1
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)).