X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a20275148be32737d2e1baf1d54181bfee0a2f6f..f40f9976fd085fd6d2099de861159bb1062a8f46:/src/common/regex.cpp?ds=sidebyside diff --git a/src/common/regex.cpp b/src/common/regex.cpp index 7b480f24c8..cbaa57991d 100644 --- a/src/common/regex.cpp +++ b/src/common/regex.cpp @@ -132,7 +132,7 @@ wxString wxRegExImpl::GetErrorMsg(int errorcode) const (void)regerror(errorcode, &m_RegEx, (char *)buf.data(), len); - msg = buf.data(); + msg = wxString(buf.data(), wxConvLibc); #else // !Unicode (void)regerror(errorcode, &m_RegEx, msg.GetWriteBuf(len), len);