aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/src
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2013-03-29 08:28:59 +0100
committerHans Bolinder <[email protected]>2013-03-29 08:28:59 +0100
commitfe7e36baf92a92198b21c698c62f61acb5dee9af (patch)
treea516ffe1a266c8f520f3dcefd8983f162ffa8429 /lib/stdlib/src
parent9754ff636fac43cc550c443e18f90afacf21344e (diff)
parentb90269e836b72e1ceeacbbac697cd16aa529cd31 (diff)
downloadotp-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.erl1
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)).