Globally replace _T() with wxT().
Standardize on using a single macro across all wxWidgets sources and solve the name clash with Sun CC standard headers (see #10660). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61508 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -311,9 +311,9 @@ bool wxApp::Initialize(int& argc_, wxChar **argv_)
|
||||
|
||||
// (1) this variable exists for the sole purpose of specifying the encoding
|
||||
// of the filenames for GTK+ programs, so use it if it is set
|
||||
wxString encName(wxGetenv(_T("G_FILENAME_ENCODING")));
|
||||
encName = encName.BeforeFirst(_T(','));
|
||||
if (encName.CmpNoCase(_T("@locale")) == 0)
|
||||
wxString encName(wxGetenv(wxT("G_FILENAME_ENCODING")));
|
||||
encName = encName.BeforeFirst(wxT(','));
|
||||
if (encName.CmpNoCase(wxT("@locale")) == 0)
|
||||
encName.clear();
|
||||
encName.MakeUpper();
|
||||
#if wxUSE_INTL
|
||||
@@ -323,13 +323,13 @@ bool wxApp::Initialize(int& argc_, wxChar **argv_)
|
||||
// filenames in this locale too
|
||||
encName = wxLocale::GetSystemEncodingName().Upper();
|
||||
// (3) finally use UTF-8 by default
|
||||
if (encName.empty() || encName == _T("US-ASCII"))
|
||||
encName = _T("UTF-8");
|
||||
wxSetEnv(_T("G_FILENAME_ENCODING"), encName);
|
||||
if (encName.empty() || encName == wxT("US-ASCII"))
|
||||
encName = wxT("UTF-8");
|
||||
wxSetEnv(wxT("G_FILENAME_ENCODING"), encName);
|
||||
}
|
||||
#else
|
||||
if (encName.empty())
|
||||
encName = _T("UTF-8");
|
||||
encName = wxT("UTF-8");
|
||||
|
||||
// if wxUSE_INTL==0 it probably indicates that only "C" locale is supported
|
||||
// by the program anyhow so prevent GTK+ from calling setlocale(LC_ALL, "")
|
||||
|
Reference in New Issue
Block a user