Support UTF-8 curly single quotes for R patterns

Since the introduction of the C.UTF-8 locale for builds, R now prints
left/right curly single quotes in its error messages.

Adapt to this behavior by accepting U+2018 (left single quotation mark)
and U+2019 (right single quotation mark) in addition to the apostrophes
for the R fail patterns.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
This commit is contained in:
Patrick McCarty
2019-07-02 09:23:56 -07:00
committed by William Douglas
parent 0e1c61f6e6
commit 3dbc3cdc6c
+9 -9
View File
@@ -254,16 +254,16 @@ failed_pats = [
(r"Warning\: no usable ([a-zA-Z0-9]+) found", 0, None),
(r"/usr/bin/env\: (.*)\: No such file or directory", 0, None),
(r"make: ([a-zA-Z0-9].+): Command not found", 0, None),
(r"ERROR: dependencies.*'([a-zA-Z0-9\-\.]*)' are not available for package '.*'", 0, 'R'),
(r"Package which this enhances but not available for checking: '([a-zA-Z0-9\-]*)'", 0, 'R'),
(r"Unknown packages '([a-zA-Z0-9\-]*)'.* in Rd xrefs", 0, 'R'),
(r"Unknown package '([a-zA-Z0-9\-]*)'.* in Rd xrefs", 0, 'R'),
(r"ERROR: dependencies '([a-zA-Z0-9\-\.]*)'.* are not available for package '.*'", 0, 'R'),
(r"ERROR: dependencies '.*', '([a-zA-Z0-9\-\.]*)',.* are not available for package '.*'", 0, 'R'),
(r"ERROR: dependency '([a-zA-Z0-9\-\.]*)' is not available for package '.*'", 0, 'R'),
(r"Error: package '([a-zA-Z0-9\-\.]*)' required by", 0, 'R'),
(r"ERROR: dependencies.*[']([a-zA-Z0-9\-\.]*)['] are not available for package ['].*[']", 0, 'R'),
(r"Package which this enhances but not available for checking: [']([a-zA-Z0-9\-]*)[']", 0, 'R'),
(r"Unknown packages [']([a-zA-Z0-9\-]*)['].* in Rd xrefs", 0, 'R'),
(r"Unknown package [']([a-zA-Z0-9\-]*)['].* in Rd xrefs", 0, 'R'),
(r"ERROR: dependencies [']([a-zA-Z0-9\-\.]*)['].* are not available for package ['].*[']", 0, 'R'),
(r"ERROR: dependencies ['].*['], [']([a-zA-Z0-9\-\.]*)['],.* are not available for package ['].*[']", 0, 'R'),
(r"ERROR: dependency [']([a-zA-Z0-9\-\.]*)['] is not available for package ['].*[']", 0, 'R'),
(r"Error: package [']([a-zA-Z0-9\-\.]*)['] required by", 0, 'R'),
(r"Error: Unable to find (.*)", 0, None),
(r"there is no package called '([a-zA-Z0-9\-\.]*)'", 0, 'R'),
(r"there is no package called [']([a-zA-Z0-9\-\.]*)[']", 0, 'R'),
(r"you may need to install the ([a-zA-Z0-9\-:\.]*) module", 0, 'perl'),
(r" ! ([a-zA-Z:]+) is not installed", 0, 'perl'),
(r"Warning: prerequisite ([a-zA-Z:]+) [0-9\.]+ not found.", 0, 'perl'),