aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/EphyWrapper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'embed/mozilla/EphyWrapper.cpp')
-rw-r--r--embed/mozilla/EphyWrapper.cpp18
1 files changed, 10 insertions, 8 deletions
diff --git a/embed/mozilla/EphyWrapper.cpp b/embed/mozilla/EphyWrapper.cpp
index 371e87134..605c3183a 100644
--- a/embed/mozilla/EphyWrapper.cpp
+++ b/embed/mozilla/EphyWrapper.cpp
@@ -848,21 +848,23 @@ nsresult EphyWrapper::GetEncodingInfo (EphyEncodingInfo **infoptr)
if (NS_FAILED (result)) return NS_ERROR_FAILURE;
info->prev_doc_encoding = g_strdup (enc.get());
#else
- result = mdv->GetDefaultCharacterSet (enc);
+ PRUnichar *str;
+
+ result = mdv->GetDefaultCharacterSet (&str);
if (NS_FAILED (result)) return NS_ERROR_FAILURE;
- info->default_encoding = g_strdup (NS_ConvertUCS2toUTF8(enc).get());
+ info->default_encoding = g_strdup (NS_ConvertUCS2toUTF8(str).get());
- result = mdv->GetForceCharacterSet (enc);
+ result = mdv->GetForceCharacterSet (&str);
if (NS_FAILED (result)) return NS_ERROR_FAILURE;
- info->forced_encoding = g_strdup (NS_ConvertUCS2toUTF8(enc).get());
+ info->forced_encoding = g_strdup (NS_ConvertUCS2toUTF8(str).get());
- result = mdv->GetHintCharacterSet (enc);
+ result = mdv->GetHintCharacterSet (&str);
if (NS_FAILED (result)) return NS_ERROR_FAILURE;
- info->hint_encoding = g_strdup (NS_ConvertUCS2toUTF8(enc).get());
+ info->hint_encoding = g_strdup (NS_ConvertUCS2toUTF8(str).get());
- result = mdv->GetPrevDocCharacterSet (enc);
+ result = mdv->GetPrevDocCharacterSet (&str);
if (NS_FAILED (result)) return NS_ERROR_FAILURE;
- info->prev_doc__encoding = g_strdup (NS_ConvertUCS2toUTF8(enc).get());
+ info->prev_doc_encoding = g_strdup (NS_ConvertUCS2toUTF8(str).get());
#endif
mdv->GetHintCharacterSetSource (&source);