From 7c19c50e52e288159d58a4894a439e6a1fb80b72 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Thu, 29 Jan 2004 10:42:11 +0000 Subject: Fix encodign conversion of "Untitled" filename suggestion. Fixes bug 2004-01-29 Christian Persch * embed/mozilla/EphyHeaderSniffer.cpp: Fix encodign conversion of "Untitled" filename suggestion. Fixes bug #132822. --- embed/mozilla/EphyHeaderSniffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'embed/mozilla') diff --git a/embed/mozilla/EphyHeaderSniffer.cpp b/embed/mozilla/EphyHeaderSniffer.cpp index cfd61913f..8d8e2d0b3 100644 --- a/embed/mozilla/EphyHeaderSniffer.cpp +++ b/embed/mozilla/EphyHeaderSniffer.cpp @@ -286,7 +286,7 @@ nsresult EphyHeaderSniffer::PerformSave (nsIURI* inOriginalURI) /* 5 One last case to handle about:blank and other untitled pages. */ if (defaultFileName.IsEmpty()) { - defaultFileName.AssignWithConversion(_("Untitled")); + defaultFileName = NS_ConvertUTF8toUCS2 (_("Untitled")); } /* Validate the file name to ensure legality. */ -- cgit v1.2.3