- result = error("Denormalized UTF-8 multibyte sequence");
- else if(result>0x10FFFF || (result>=0xD800 && result<=0xDFFF))
- result = error("Invalid Unicode code point");
+ result = error(invalid_sequence(i, j, "denormalized UTF-8 sequence"));
+ else if(!is_valid_unichar(result))
+ result = error(invalid_sequence(i, j, "undefined UTF-8 character"));