A few Unicode fixes.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@6938 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Ove Kaaven
2000-03-25 23:03:26 +00:00
parent caf45e24c0
commit 0166fed863
4 changed files with 10 additions and 11 deletions

View File

@@ -668,7 +668,7 @@ void wxPrintData::ConvertFromNative()
// Not sure if we should check for this mismatch
// wxASSERT_MSG( (m_printerName == "" || (devName == m_printerName)), "Printer name obtained from DEVMODE and DEVNAMES were different!");
if (printerName != "")
if (printerName != wxT(""))
m_printerName = printerName;
GlobalUnlock(hDevNames);

View File

@@ -42,7 +42,6 @@
#include <stdlib.h>
#include <math.h>
#include <ctype.h> // for isalnum()
// ----------------------------------------------------------------------------
// global and class static variables
@@ -292,13 +291,13 @@ wxString wxExpandEnvVars(const wxString& str)
for ( size_t n = 0; n < str.Len(); n++ ) {
switch ( str[n] ) {
#ifdef __WXMSW__
case '%':
case wxT('%'):
#endif //WINDOWS
case '$':
case wxT('$'):
{
Bracket bracket;
#ifdef __WXMSW__
if ( str[n] == '%' )
if ( str[n] == wxT('%') )
bracket = Bracket_Windows;
else
#endif //WINDOWS
@@ -307,12 +306,12 @@ wxString wxExpandEnvVars(const wxString& str)
}
else {
switch ( str[n + 1] ) {
case '(':
case wxT('('):
bracket = Bracket_Normal;
n++; // skip the bracket
break;
case '{':
case wxT('{'):
bracket = Bracket_Curly;
n++; // skip the bracket
break;
@@ -324,7 +323,7 @@ wxString wxExpandEnvVars(const wxString& str)
m = n + 1;
while ( m < str.Len() && (isalnum(str[m]) || str[m] == '_') )
while ( m < str.Len() && (wxIsalnum(str[m]) || str[m] == wxT('_')) )
m++;
wxString strVarName(str.c_str() + n + 1, m - n - 1);
@@ -363,7 +362,7 @@ wxString wxExpandEnvVars(const wxString& str)
case '\\':
// backslash can be used to suppress special meaning of % and $
if ( n != str.Len() && (str[n + 1] == '%' || str[n + 1] == '$') ) {
if ( n != str.Len() && (str[n + 1] == wxT('%') || str[n + 1] == wxT('$')) ) {
strResult += str[++n];
break;

View File

@@ -165,7 +165,7 @@ bool wxMemoryFSHandler::CheckHash(const wxString& filename)
{
wxString s;
s.Printf(_("Failed to store image '%s' to memory VFS!"), filename.c_str());
printf("'%s'\n", s.c_str());
wxPrintf(wxT("'%s'\n"), s.c_str());
wxLogError(s);
}
}

View File

@@ -292,7 +292,7 @@ static wxString GetFullSearchPath(const wxChar *lang)
// LC_PATH is a standard env var containing the search path for the .mo
// files
const wxChar *pszLcPath = wxGetenv("LC_PATH");
const wxChar *pszLcPath = wxGetenv(wxT("LC_PATH"));
if ( pszLcPath != NULL )
searchPath << GetAllMsgCatalogSubdirs(pszLcPath, lang);