compate charset names case-insensitively in GetEncodingFromName()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35569 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2005-09-18 14:46:41 +00:00
parent 0586024f65
commit 6ba5438dda

View File

@@ -705,7 +705,7 @@ wxFontEncoding wxFontMapperBase::GetEncodingFromName(const wxString& name)
{
for ( const wxChar** encName = gs_encodingNames[i]; *encName; ++encName )
{
if ( name == *encName )
if ( name.CmpNoCase(*encName) == 0 )
return gs_encodings[i];
}
}