aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--embed/mozilla/EphyWrapper.cpp4
2 files changed, 10 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index c17dcf399..b104d8479 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2003-06-19 Marco Pesenti Gritti <marco@it.gnome.org>
+
+ * embed/mozilla/EphyWrapper.cpp:
+
+ Mozilla api change, pfffff
+
2003-06-19 Xan Lopez <xan@masilla.org>
* embed/mozilla/ProgressListener.cpp:
diff --git a/embed/mozilla/EphyWrapper.cpp b/embed/mozilla/EphyWrapper.cpp
index b08447145..367579902 100644
--- a/embed/mozilla/EphyWrapper.cpp
+++ b/embed/mozilla/EphyWrapper.cpp
@@ -730,7 +730,11 @@ nsresult EphyWrapper::ForceEncoding (const char *encoding)
&result);
if (NS_FAILED(result) || !mdv) return NS_ERROR_FAILURE;
+#if MOZILLA_SNAPSHOT > 8
+ result = mdv->SetForceCharacterSet (nsDependentCString(encoding));
+#else
result = mdv->SetForceCharacterSet (NS_ConvertUTF8toUCS2(encoding).get());
+#endif
return result;
}