X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/223d09f6b523aac674ef9b72a883dfa8d37c5d4e..61f0d452ea7e47fea18d0ab748095dc42d7dd66d:/src/common/intl.cpp diff --git a/src/common/intl.cpp b/src/common/intl.cpp index 6ad12197a5..1172719390 100644 --- a/src/common/intl.cpp +++ b/src/common/intl.cpp @@ -423,7 +423,7 @@ const char *wxMsgCatalog::GetString(const char *szOrig) const if ( nStr == 0 ) return NULL; - if ( strcmp(szOrig, StringAtOfs(m_pOrigTable, nStr - 1)) == 0 ) + if ( wxStrcmp(szOrig, StringAtOfs(m_pOrigTable, nStr - 1)) == 0 ) return StringAtOfs(m_pTransTable, nStr - 1); if ( nIndex >= m_nHashSize - nIncr) @@ -438,7 +438,7 @@ const char *wxMsgCatalog::GetString(const char *szOrig) const current; while ( bottom < top ) { current = (bottom + top) / 2; - int res = strcmp(szOrig, StringAtOfs(m_pOrigTable, current)); + int res = wxStrcmp(szOrig, StringAtOfs(m_pOrigTable, current)); if ( res < 0 ) top = current; else if ( res > 0 ) @@ -586,12 +586,8 @@ const wxMB2WXbuf wxLocale::GetString(const wxChar *szOrigString, } else { - // FIXME it was - // return (wxMB2WXbuf)(wxConvCurrent->cMB2WX(pszTrans)); - // before, but we don't want to use wxConvCurrent explicitly to - // avoid linking unnecessary code in ANSI programs without MB - // support - return (wxMB2WXbuf)(pszTrans); + return wxConvertMB2WX(pszTrans); // or preferably wxCSConv(charset).cMB2WX(pszTrans) or something, + // a macro similar to wxConvertMB2WX could be written for that } #undef szOrgString