This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regcomp.c: min len is chars, not bytes
authorKarl Williamson <public@khwilliamson.com>
Sun, 30 Sep 2012 15:41:51 +0000 (09:41 -0600)
committerKarl Williamson <public@khwilliamson.com>
Tue, 9 Oct 2012 17:16:04 +0000 (11:16 -0600)
commit2d6084134c9368aa08d70d491e30e209b2993fd3
treef45f2b33a273fe36c9f9799295fff01e22f52d5b
parentb92848b53e0a0b0d773db30fe768b7b86bff8ca0
regcomp.c: min len is chars, not bytes

The traditionally-called tricky folds occur because, under /i, a
6-byte/3-character sequence can match a 2-byte/1-character sequence.
The code here has assumed that the delta quantity is measured in bytes
(6-2=4), whereas everywhere else (AFAICT), assumes the measure is to be
in characters (3-2=1).
pod/perlreapi.pod
regcomp.c