Bug 88650 - OpenCL: backslashes in blacklist and whitelist entries
Summary: OpenCL: backslashes in blacklist and whitelist entries
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
(earliest affected) rc
Hardware: Other All
: medium normal
Assignee: Not Assigned
Depends on:
Reported: 2015-01-21 03:33 UTC by Robinson Tryon (qubit)
Modified: 2016-03-05 19:15 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:

[Screenshot] Backslashes appearing in the OpenCL whitelist/blacklist (87.97 KB, image/png)
2015-01-21 03:33 UTC, Robinson Tryon (qubit)

Note You need to log in before you can comment on or make changes to this bug.
Description Robinson Tryon (qubit) 2015-01-21 03:33:56 UTC
Created attachment 112579 [details]
[Screenshot] Backslashes appearing in the OpenCL whitelist/blacklist

On Ubuntu 14.04 + LO

1) Open LibreOffice
2) Tools -> Options -> LibreOffice -> OpenCL
3) Look at the strings listed on the whitelist and blacklist: they appear to have backslashes escaping some (but not all) of the non-alphanumeric characters

EXPECTED: No backslashes in these strings
Comment 1 Matthew Francis 2015-01-21 10:04:57 UTC
Reproduced on Ubuntu 14.04 and OSX 10.10 / LO

-> NEW
Comment 2 Markus Mohrhard 2016-03-05 14:50:59 UTC
The strings there are regular expressions so we need to escape the characters with special meaning '(', ')' and '.'. The string later goes into icu's regex matcher.
Comment 3 Tor Lillqvist 2016-03-05 19:15:22 UTC
Further: Even if there currently are no entries in the list, as bundled with LibreOffice, that would make use of regular expression features, there is nothing that guarantees that we won't need to use actual regular expressions in the future.