if ( ::GetLocaleInfo(lcid, LOCALE_IDEFAULTANSICODEPAGE,
buffer, WXSIZEOF(buffer)) > 0 )
{
- if ( buffer[0] != _T('0') || buffer[1] != _T('\0') )
+ if ( buffer[0] != wxT('0') || buffer[1] != wxT('\0') )
cp = buffer;
//else: this locale doesn't use ANSI code page
}
const LCID lcid = GetLCID();
wxChar buffer[256];
- buffer[0] = _T('\0');
+ buffer[0] = wxT('\0');
if ( !::GetLocaleInfo(lcid, LOCALE_SENGLANGUAGE, buffer, WXSIZEOF(buffer)) )
{
- wxLogLastError(_T("GetLocaleInfo(LOCALE_SENGLANGUAGE)"));
+ wxLogLastError(wxT("GetLocaleInfo(LOCALE_SENGLANGUAGE)"));
return locale;
}
if ( ::GetLocaleInfo(lcid, LOCALE_SENGCOUNTRY,
buffer, WXSIZEOF(buffer)) > 0 )
{
- locale << _T('_') << buffer;
+ locale << wxT('_') << buffer;
}
const wxString cp = wxGetANSICodePageForLocale(lcid);
if ( !cp.empty() )
{
- locale << _T('.') << cp;
+ locale << wxT('.') << cp;
}
return locale;
char chLast = '\0';
size_t lastCount = 0;
-
- const char* formatchars =
+
+ const char* formatchars =
"dghHmMsSy"
#ifdef __WXMSW__
"t"
// strftime() doesn't have era string,
// ignore this format
wxASSERT_MSG( lastCount <= 2, "too many 'g's" );
-
+
break;
#ifndef __WXMSW__
case 'a':
break;
// not a special character so must be just a separator, treat as is
- if ( *p == _T('%') )
+ if ( *p == wxT('%') )
{
// this one needs to be escaped
- fmtWX += _T('%');
+ fmtWX += wxT('%');
}
fmtWX += *p;