No, .mo files doesn't use Unicode, so use strcmp here, not wxStrcmp...

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4547 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Ove Kaaven
1999-11-13 10:57:12 +00:00
parent 511f273f9e
commit 7aa733b31e

View File

@@ -423,7 +423,7 @@ const char *wxMsgCatalog::GetString(const char *szOrig) const
if ( nStr == 0 )
return NULL;
if ( wxStrcmp(szOrig, StringAtOfs(m_pOrigTable, nStr - 1)) == 0 )
if ( strcmp(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 = wxStrcmp(szOrig, StringAtOfs(m_pOrigTable, current));
int res = strcmp(szOrig, StringAtOfs(m_pOrigTable, current));
if ( res < 0 )
top = current;
else if ( res > 0 )