X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6e9f05fa7b0d0cafd9e8f425db7eb1c118bc441..f2c2fa4d62b34608e21b04f8010149945aebda70:/src/common/intl.cpp diff --git a/src/common/intl.cpp b/src/common/intl.cpp index 42e9ff74d4..84022468f4 100644 --- a/src/common/intl.cpp +++ b/src/common/intl.cpp @@ -308,9 +308,9 @@ bool wxMsgCatalog::Load(const wxChar *szDirPrefix, const wxChar *szName0) FIXME: UNICODE SUPPORT: must use CHARSET specifier! */ wxString szName = szName0; - if(szName.Find('.') != -1) // contains a dot - szName = szName.Left(szName.Find('.')); - + if(szName.Find(wxT('.')) != -1) // contains a dot + szName = szName.Left(szName.Find(wxT('.'))); + // FIXME VZ: I forgot the exact meaning of LC_PATH - anyone to remind me? // KB: search path where to find the mo files, probably : delimited #if 0 @@ -418,7 +418,13 @@ const char *wxMsgCatalog::GetString(const char *szOrig) const size_t32 nIncr = 1 + (nHashVal % (m_nHashSize - 2)); - while ( TRUE ) { +#if defined(__VISAGECPP__) +// VA just can't stand while(1) or while(TRUE) + bool bOs2var = TRUE; + while(bOs2var) { +#else + while (1) { +#endif size_t32 nStr = Swap(m_pHashTable[nIndex]); if ( nStr == 0 ) return NULL;