From 7d99e64d31258ca555ad3db530db6a89c27fcba0 Mon Sep 17 00:00:00 2001 From: alisdair sullivan Date: Tue, 20 Mar 2012 23:13:27 -0700 Subject: [PATCH] finally found actual cause of otp r14x bug --- src/jsx_encoder.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jsx_encoder.erl b/src/jsx_encoder.erl index 6f993f1..35c0af2 100644 --- a/src/jsx_encoder.erl +++ b/src/jsx_encoder.erl @@ -118,7 +118,7 @@ check_string(<>) when C < 16#fdd0 -> check_string(<>) when C > 16#fdef, C < 16#fffe -> check_string(Rest); check_string(<>) - when C > 16#fffd andalso + when C > 16#ffff andalso C =/= 16#fffe andalso C =/= 16#ffff andalso C =/= 16#1fffe andalso C =/= 16#1ffff andalso C =/= 16#2fffe andalso C =/= 16#2ffff andalso