Revision: 1164
http://vcs.pcre.org/viewvc?view=rev&revision=1164
Author: ph10
Date: 2012-10-23 12:12:17 +0100 (Tue, 23 Oct 2012)
Log Message:
-----------
Include character values in error messages for invalid conversions to 16 and 32
bit strings.
Modified Paths:
--------------
code/trunk/pcretest.c
Modified: code/trunk/pcretest.c
===================================================================
--- code/trunk/pcretest.c 2012-10-23 10:57:30 UTC (rev 1163)
+++ code/trunk/pcretest.c 2012-10-23 11:12:17 UTC (rev 1164)
@@ -4752,8 +4752,8 @@
{
if (c > 0x10ffffu)
{
- fprintf(outfile, "**Failed: character value greater than 0x10ffff "
- "cannot be converted to UTF-16\n");
+ fprintf(outfile, "** Failed: character \\x{%x} is greater than "
+ "0x10ffff and so cannot be converted to UTF-16\n", c);
goto NEXT_DATA;
}
else if (c >= 0x10000u)
@@ -4770,8 +4770,8 @@
{
if (c > 0xffffu)
{
- fprintf(outfile, "** Character value is greater than 0xffff "
- "and UTF-16 mode is not enabled.\n");
+ fprintf(outfile, "** Character \\x{%x} is greater than 0xffff "
+ "and UTF-16 mode is not enabled.\n", c);
fprintf(outfile, "** Truncation will probably give the wrong "
"result.\n");
}