Open Quuxplusone opened 5 years ago
Attached bug.cpp
(852 bytes, text/x-c++src): Testcase
Expected Output of the Testcase:
All ok
Got:
Bug triggered
My first thought was that you had a "high ascii" character in the test case, and that was getting treated differently by the locale. That appears not to be the case.
Attached bug.cpp
(987 bytes, text/x-c++src): Updated testcase with facets
I also tried to set the facets one by one. It just triggers at
- all_characters
- collation_facet
- all_categories
I also updated the testcase to show how i did it.
The bug also goes away if i remove the icase flag from the regex.
Is it specific to the "de_DE.UTF-8" locale, or does it happen with others?
I'm thinking of other UTF-8 locales, like "en_US.UTF-8" or "fr_FR.UTF-8"
Attached testReTraits.cpp
(618 bytes, text/plain): Check all the characters for tolower
Whoops. I sent this to the wrong place. This should have been sent to https://reviews.llvm.org/D55746 instead. It may be related, but that's not for sure yet.
Attached bug.cpp
(7220 bytes, text/x-c++src): expanded testcase that run 192 locales (1 segfaults if i do it) x 3 backends x 12 facets x icase on/off.
Attached result-csv.txt
(674664 bytes, text/plain): result csv that shows the testresults of the locale combinations
Attached result-csv.ods
(143022 bytes, application/vnd.oasis.opendocument.spreadsheet): Pivot Analysis of the result
bug.cpp
(852 bytes, text/x-c++src)bug.cpp
(987 bytes, text/x-c++src)testReTraits.cpp
(618 bytes, text/plain)bug.cpp
(7220 bytes, text/x-c++src)result-csv.txt
(674664 bytes, text/plain)result-csv.ods
(143022 bytes, application/vnd.oasis.opendocument.spreadsheet)