git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32085
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
encoding = wxLocale::GetSystemEncoding() ;
#endif
}
+ if ( encoding == wxFONTENCODING_SYSTEM )
+ {
+ enc = CFStringGetSystemEncoding();
+ }
switch( encoding)
{
// converts this string into a carbon foundation string with optional pc 2 mac encoding
void wxMacCFStringHolder::Assign( const wxString &st , wxFontEncoding encoding )
{
- Release() ;
+ Release() ;
+ if (st.IsEmpty())
+ return ;
wxString str = st ;
wxMacConvertNewlines13To10( &str ) ;