diff options
author | Hans Bolinder <[email protected]> | 2013-03-29 08:28:59 +0100 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2013-03-29 08:28:59 +0100 |
commit | fe7e36baf92a92198b21c698c62f61acb5dee9af (patch) | |
tree | a516ffe1a266c8f520f3dcefd8983f162ffa8429 /lib/stdlib/src | |
parent | 9754ff636fac43cc550c443e18f90afacf21344e (diff) | |
parent | b90269e836b72e1ceeacbbac697cd16aa529cd31 (diff) | |
download | otp-fe7e36baf92a92198b21c698c62f61acb5dee9af.tar.gz otp-fe7e36baf92a92198b21c698c62f61acb5dee9af.tar.bz2 otp-fe7e36baf92a92198b21c698c62f61acb5dee9af.zip |
Merge branch 'hb/stdlib/unicode_bugfix/OTP-10990' into maint
* hb/stdlib/unicode_bugfix/OTP-10990:
Fix a bug in the Erlang scanner
Diffstat (limited to 'lib/stdlib/src')
-rw-r--r-- | lib/stdlib/src/erl_scan.erl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/stdlib/src/erl_scan.erl b/lib/stdlib/src/erl_scan.erl index 3651f608bc..d988a4d8c7 100644 --- a/lib/stdlib/src/erl_scan.erl +++ b/lib/stdlib/src/erl_scan.erl @@ -338,6 +338,7 @@ string_thing(_) -> "string". -define(DIGIT(C), C >= $0, C =< $9). -define(CHAR(C), is_integer(C), C >= 0). -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)). |