X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/90548138ac2c372ad2ba3b0c3bf570797828e2a8..8cc00d5fcafccb2fc2c3fa2eda78651a5634aab2:/src/html/winpars.cpp diff --git a/src/html/winpars.cpp b/src/html/winpars.cpp index df118d2823..e994399b8b 100644 --- a/src/html/winpars.cpp +++ b/src/html/winpars.cpp @@ -4,7 +4,7 @@ // Author: Vaclav Slavik // RCS-ID: $Id$ // Copyright: (c) 1999 Vaclav Slavik -// Licence: wxWindows Licence +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -450,7 +450,6 @@ void wxHtmlWinParser::SetInputEncoding(wxFontEncoding enc) wxFontEncoding altfix, altnorm; bool availfix, availnorm; -#ifndef __WXMAC__ // exact match? availnorm = wxFontMapper::Get()->IsEncodingAvailable(enc, m_FontFaceNormal); availfix = wxFontMapper::Get()->IsEncodingAvailable(enc, m_FontFaceFixed); @@ -469,13 +468,15 @@ void wxHtmlWinParser::SetInputEncoding(wxFontEncoding enc) else if (wxFontMapper::Get()->GetAltForEncoding(enc, &altnorm, m_FontFaceNormal, FALSE)) m_OutputEnc = altnorm; - // okay, let convert to ISO_8859-1, available always else + { +#ifndef __WXMAC__ + // okay, let convert to ISO_8859-1, available always m_OutputEnc = wxFONTENCODING_DEFAULT; #else - // we only have the current system encoding - m_OutputEnc = wxFONTENCODING_MACROMAN; + m_OutputEnc = wxLocale::GetSystemEncoding() ; #endif + } m_InputEnc = enc; if (m_OutputEnc == wxFONTENCODING_DEFAULT)