From 6ba5438dda164146bf36ca729f8328332fae36b7 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 18 Sep 2005 14:46:41 +0000 Subject: [PATCH] compate charset names case-insensitively in GetEncodingFromName() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35569 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/fmapbase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/fmapbase.cpp b/src/common/fmapbase.cpp index e5a48a1602..b6d16c53a9 100644 --- a/src/common/fmapbase.cpp +++ b/src/common/fmapbase.cpp @@ -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]; } } -- 2.45.2