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:
@@ -423,7 +423,7 @@ const char *wxMsgCatalog::GetString(const char *szOrig) const
|
|||||||
if ( nStr == 0 )
|
if ( nStr == 0 )
|
||||||
return NULL;
|
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);
|
return StringAtOfs(m_pTransTable, nStr - 1);
|
||||||
|
|
||||||
if ( nIndex >= m_nHashSize - nIncr)
|
if ( nIndex >= m_nHashSize - nIncr)
|
||||||
@@ -438,7 +438,7 @@ const char *wxMsgCatalog::GetString(const char *szOrig) const
|
|||||||
current;
|
current;
|
||||||
while ( bottom < top ) {
|
while ( bottom < top ) {
|
||||||
current = (bottom + top) / 2;
|
current = (bottom + top) / 2;
|
||||||
int res = wxStrcmp(szOrig, StringAtOfs(m_pOrigTable, current));
|
int res = strcmp(szOrig, StringAtOfs(m_pOrigTable, current));
|
||||||
if ( res < 0 )
|
if ( res < 0 )
|
||||||
top = current;
|
top = current;
|
||||||
else if ( res > 0 )
|
else if ( res > 0 )
|
||||||
|
Reference in New Issue
Block a user