/[pcre]/code/trunk/ChangeLog
ViewVC logotype

Diff of /code/trunk/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 594 by ph10, Sun May 1 08:22:12 2011 UTC revision 598 by ph10, Sat May 7 15:37:31 2011 UTC
# Line 8  Version 8.13 30-Apr-2011 Line 8  Version 8.13 30-Apr-2011
8    
9  2.  Two minor typos in pcre_internal.h have been fixed.  2.  Two minor typos in pcre_internal.h have been fixed.
10    
11  3.  Added #include <string.h> to pcre_scanner_unittest.cc, pcrecpp.cc, and  3.  Added #include <string.h> to pcre_scanner_unittest.cc, pcrecpp.cc, and
12      pcrecpp_unittest.cc. They are needed for strcmp(), memset(), and strchr()      pcrecpp_unittest.cc. They are needed for strcmp(), memset(), and strchr()
13      in some environments (e.g. Solaris 10/SPARC using Sun Studio 12U2).      in some environments (e.g. Solaris 10/SPARC using Sun Studio 12U2).
14    
15    4.  There were a number of related bugs in the code for matching backrefences
16        caselessly in UTF-8 mode when codes for the characters concerned were
17        different numbers of bytes. For example, U+023A and U+2C65 are an upper
18        and lower case pair, using 2 and 3 bytes, respectively. The main bugs were:
19        (a) A reference to 3 copies of a 2-byte code matched only 2 of a 3-byte
20        code. (b) A reference to 2 copies of a 3-byte code would not match 2 of a
21        2-byte code at the end of the subject (it thought there wasn't enough data
22        left).
23    
24    5.  Comprehensive information about what went wrong is now returned by
25        pcre_exec() and pcre_dfa_exec() when the UTF-8 string check fails, as long
26        as the output vector has at least 2 elements. The offset of the start of
27        the failing character and a reason code are placed in the vector.
28    
29    6.  When the UTF-8 string check fails for pcre_compile(), the offset that is
30        now returned is for the first byte of the failing character, instead of the
31        last byte inspected. This is an incompatible change, but I hope it is small
32        enough not to be a problem. It makes the returned offset consistent with
33        pcre_exec() and pcre_dfa_exec().
34    
35    7.  pcretest now gives a text phrase as well as the error number when
36        pcre_exec() or pcre_dfa_exec() fails; if the error is a UTF-8 check
37        failure, the offset and reason code are output.
38    
39    
40    
41  Version 8.12 15-Jan-2011  Version 8.12 15-Jan-2011

Legend:
Removed from v.594  
changed lines
  Added in v.598

  ViewVC Help
Powered by ViewVC 1.1.5