From 3dfa478146ba8fa06273bb89a95edb87b0dc03ca Mon Sep 17 00:00:00 2001 From: ntrifunovic Date: Mon, 24 Jul 2006 11:37:56 +0000 Subject: [PATCH] Fixed a problem in find_invalid : reporting some valid code points as invalid. git-svn-id: http://svn.code.sf.net/p/utfcpp/code@18 a809a056-fc17-0410-9590-b4f493f8b08e --- source/utf8.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/utf8.h b/source/utf8.h index de6bba1..a59fa64 100644 --- a/source/utf8.h +++ b/source/utf8.h @@ -172,7 +172,7 @@ namespace internal break; } // Is the code point valid? - if (cp > CODE_POINT_MAX || is_surrogate(cp) || mask8(cp) == 0xff || mask8(cp) == 0xfe) + if (cp > CODE_POINT_MAX || is_surrogate(cp) || cp == 0xff || cp == 0xfe) return INVALID_CODE_POINT; if (code_point)