Hi Thomas,
   dose is still using Pcre, not Re, this is why the backport
patch contains two parts, the second one changing from
Pcre to Re (see below)... 

But I have no problem if you want to move this second part
into the big pcre2re blob

--
Roberto

+diff --git a/common/cudfSolver.ml b/common/cudfSolver.ml
+index 548ee12..2caf76a 100644
+--- a/common/cudfSolver.ml
++++ b/common/cudfSolver.ml
+@@ -55,7 +55,7 @@ let rec input_all_lines acc chan =
+    document, output CUDF universe, user preferences. *)
+ 
+ (* quote string for the shell, after removing all characters disallowed in criteria *)
+-let sanitize s = Printf.sprintf "\"%s\"" (Pcre.substitute ~rex:(Pcre.regexp "[^+()a-z,\"-]") ~subst:(fun _ -> "") s);;


On Thu, Jan 16, 2014 at 10:59:17AM -0800, Thomas Gazagnaire wrote:
> In src_ext/dose-quotecriteria.diff:
> 
> > @@ -0,0 +1,33 @@
> > +diff --git a/common/cudfSolver.ml b/common/cudfSolver.ml
> > +index 9bfda7e..548ee12 100644
> > +--- a/common/cudfSolver.ml
> > ++++ b/common/cudfSolver.ml
> > +@@ -53,10 +53,14 @@ let rec input_all_lines acc chan =
> > + (** Solver "exec:" line. Contains three named wildcards to be interpolated:
> > +    "$in", "$out", and "$pref"; corresponding to, respectively, input CUDF
> > +    document, output CUDF universe, user preferences. *)
> > ++
> > ++(* quote string for the shell, after removing all characters disallowed in criteria *)
> > ++let sanitize s = Printf.sprintf "\"%s\"" (Pcre.substitute ~rex:(Pcre.regexp "[^+()a-z,\"-]") ~subst:(fun _ -> "") s);;
> 
> still using Pcre here
> 
> —
> Reply to this email directly or view it on GitHub.*
> 

-- 
Roberto Di Cosmo
 
------------------------------------------------------------------
Professeur               En delegation a l'INRIA
PPS                      E-mail: roberto@dicosmo.org
Universite Paris Diderot WWW  : http://www.dicosmo.org
Case 7014                Tel  : ++33-(0)1-57 27 92 20
5, Rue Thomas Mann       
F-75205 Paris Cedex 13   Identica: http://identi.ca/rdicosmo
FRANCE.                  Twitter: http://twitter.com/rdicosmo
------------------------------------------------------------------
Attachments:
MIME accepted, Word deprecated
      http://www.gnu.org/philosophy/no-word-attachments.html
------------------------------------------------------------------
Office location:
 
Bureau 3020 (3rd floor)
Batiment Sophie Germain
Avenue de France
Metro Bibliotheque Francois Mitterrand, ligne 14/RER C
-----------------------------------------------------------------
GPG fingerprint 2931 20CE 3A5A 5390 98EC 8BFC FCCA C3BE 39CB 12D3