From 71d1ced5b881f0a33628edbcb5ac34e0549e160a Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 17 Jul 2021 17:59:05 +0200 Subject: [PATCH] Fix recently broken wxRegEx build in UTF-8 mode Restore the use of c_str() replaced with wx_str() in 4dd77dabe8 (Check for WXREGEX_CONVERT_TO_MB when calling regcomp() too, 2021-07-16), as it's still necessary when wxUSE_UNICODE_UTF8==1. --- src/common/regex.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/regex.cpp b/src/common/regex.cpp index 2b784a7314..9dfbe919fa 100644 --- a/src/common/regex.cpp +++ b/src/common/regex.cpp @@ -550,7 +550,7 @@ bool wxRegExImpl::Compile(const wxString& expr, int flags) flagsRE |= REG_NEWLINE; #ifndef WXREGEX_CONVERT_TO_MB - const wxChar *exprstr = expr.wx_str(); + const wxChar *exprstr = expr.c_str(); #else const wxScopedCharBuffer exprbuf = expr.utf8_str(); const char* const exprstr = exprbuf.data();