[llvm-bugs] [Bug 40052] New: boost::regex match but not std::regex
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Dec 17 07:26:14 PST 2018
https://bugs.llvm.org/show_bug.cgi?id=40052
Bug ID: 40052
Summary: boost::regex match but not std::regex
Product: libc++
Version: 6.0
Hardware: PC
OS: FreeBSD
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: georg-bsd at schorsch-tech.de
CC: llvm-bugs at lists.llvm.org, mclow.lists at gmail.com
Created attachment 21237
--> https://bugs.llvm.org/attachment.cgi?id=21237&action=edit
Testcase
I got the attached program. It has a global locale set (de_DE.UTF-8).
I think it might be a bug in libc++ because
on Windows(MSVC 2013 & MSVC 2017) and on Linux (gcc 8.2 + libstdc++) this regex
(from std) matches with the global locale from boost. Also the regex from boost
matches (replace std::regex by boost::regex).
This bug triggers only (also on my box and only on freebsd with clang and
libc++) when i use boost::locale. With std::locale() it matches.
I already submitted this bug to FreeBSD and to boost.org.
For reference, here are the links
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=233994
Boost.locale says:
[quote]
Boost.Regex and Boost.Locale aren't related, the locale generated by
Boost.Locale is "C" locale with addons unrelated to Boost.Regex
[/quote]
https://github.com/boostorg/locale/issues/35
FreeBSD says, it is a bug in boost.locale.
As both of my direct upstream bugtrackers seem to "dislike" this bug, i report
it to clang/libc++ directly.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20181217/87410a67/attachment.html>
More information about the llvm-bugs
mailing list