Merge lp:~paul-lucas/zorba/bug-1131985 into lp:zorba

Proposed by Paul J. Lucas
Status: Merged
Approved by: Matthias Brantner
Approved revision: 11389
Merged at revision: 11390
Proposed branch: lp:~paul-lucas/zorba/bug-1131985
Merge into: lp:zorba
Diff against target: 45 lines (+10/-3)
3 files modified
ChangeLog (+1/-0)
src/util/icu_regex.cpp (+9/-0)
test/fots/CMakeLists.txt (+0/-3)
To merge this branch: bzr merge lp:~paul-lucas/zorba/bug-1131985
Reviewer Review Type Date Requested Status
Matthias Brantner Approve
Paul J. Lucas Approve
Review via email: mp+159542@code.launchpad.net

Commit message

Fixed IsPrivateUse.

Description of the change

Fixed IsPrivateUse.

To post a comment you must log in.
Revision history for this message
Paul J. Lucas (paul-lucas) :
review: Approve
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Validation queue job bug-1131985-2013-04-18T03-32-51.688Z is finished. The final status was:

All tests succeeded!

Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Voting does not meet specified criteria. Required: Approve > 1, Disapprove < 1, Needs Fixing < 1, Pending < 1, Needs Information < 1, Resubmit < 1. Got: 1 Approve.

lp:~paul-lucas/zorba/bug-1131985 updated
11388. By Paul J. Lucas

Updated ChangeLog.

11389. By Paul J. Lucas

Merge from trunk.

Revision history for this message
Matthias Brantner (matthias-brantner) :
review: Approve
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Validation queue job bug-1131985-2013-04-18T17-53-52.503Z is finished. The final status was:

All tests succeeded!

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'ChangeLog'
2--- ChangeLog 2013-04-17 16:30:00 +0000
3+++ ChangeLog 2013-04-18 04:23:27 +0000
4@@ -76,6 +76,7 @@
5 * Fixed bug #866874 (regex "range subtraction" not supported for ICU)
6 * Fixed bug in computing the static type of an allowing-empty FOR variable.
7 * Fixed bug #1099648 and #1088886 (XML parsing failures on Red Hat)
8+ * Fixed bug #1131985 (\p{IsPrivateUse} in regex may not be working)
9 * Fixed bug #1099535 (xml:parse endless loop)
10 * Fixed bug in optimizing fn:count over general-index probes
11 * Fixed bug #866958 (Parsing error not explicit enough)
12
13=== modified file 'src/util/icu_regex.cpp'
14--- src/util/icu_regex.cpp 2013-04-17 16:30:35 +0000
15+++ src/util/icu_regex.cpp 2013-04-18 04:23:27 +0000
16@@ -577,6 +577,15 @@
17 //
18 ascii::replace_all( *icu_re, "\\p{Is", 5, "\\p{In", 5 );
19 ascii::replace_all( *icu_re, "\\P{Is", 5, "\\P{In", 5 );
20+
21+ //
22+ // Apparently, ICU doesn't recognize InPrivateUse, so change it to Co.
23+ //
24+ // Note that the "16" and "6" below are correct since "\\" represents a
25+ // single '\'.
26+ //
27+ ascii::replace_all( *icu_re, "\\p{InPrivateUse}", 16, "\\p{Co}", 6 );
28+ ascii::replace_all( *icu_re, "\\P{InPrivateUse}", 16, "\\P{Co}", 6 );
29 } // q_flag
30
31 #ifdef DEBUG_CONVERT_REGEX
32
33=== modified file 'test/fots/CMakeLists.txt'
34--- test/fots/CMakeLists.txt 2013-04-17 22:01:55 +0000
35+++ test/fots/CMakeLists.txt 2013-04-18 04:23:27 +0000
36@@ -189,9 +189,6 @@
37 EXPECTED_FOTS_FAILURE (fn-generate-id generate-id-017 0)
38 EXPECTED_FOTS_FAILURE (fn-last last-24 0)
39 EXPECTED_FOTS_FAILURE (fn-matches cbcl-matches-038 1131304)
40-EXPECTED_FOTS_FAILURE (fn-matches.re re00288 1131985)
41-EXPECTED_FOTS_FAILURE (fn-matches.re re00370 1131985)
42-EXPECTED_FOTS_FAILURE (fn-matches.re re00480 1131985)
43 EXPECTED_FOTS_FAILURE (fn-nilled fn-nilled-33 0)
44 EXPECTED_FOTS_FAILURE (fn-nilled fn-nilled-35 0)
45 EXPECTED_FOTS_FAILURE (fn-nilled fn-nilled-37 0)

Subscribers

People subscribed via source and target branches