+ // many charsets use hyphens in their names but some systems use the
+ // same names without hyphens (e.g. "UTF-8" and "UTF8" are both common)
+ // so to avoid bloating gs_encodingNames array too much recognize both
+ // versions with and without hyphens here
+ wxString nameNoHyphens(name);
+ if ( !nameNoHyphens.Replace(_T("-"), _T("")) )
+ {
+ // no replacement has been done, no need to compare twice
+ nameNoHyphens.clear();
+ }
+
+