From 811e4dd5158e45e2830d2d431a48a9a2297de226 Mon Sep 17 00:00:00 2001 From: Neil Hodgson Date: Wed, 16 May 2018 11:43:01 +1000 Subject: Fix regex crash reported with libstdc++ on macOS that occurs when the regex has a locale imbued. --- src/Document.cxx | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src') diff --git a/src/Document.cxx b/src/Document.cxx index bcc368a68..222a8bc31 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -2949,13 +2949,6 @@ Sci::Position Cxx11RegexFindText(const Document *doc, Sci::Position minPos, Sci: #endif ws[outLen] = 0; std::wregex regexp; -#if defined(__APPLE__) - // Using a UTF-8 locale doesn't change to Unicode over a byte buffer so '.' - // is one byte not one character. - // However, on OS X this makes wregex act as Unicode - std::locale localeU("en_US.UTF-8"); - regexp.imbue(localeU); -#endif regexp.assign(&ws[0], flagsRe); matched = MatchOnLines(doc, regexp, resr, search); -- cgit v1.2.3