From 52c54d05da56c158b2c74bce98d25f359c872078 Mon Sep 17 00:00:00 2001 From: "nhotta%netscape.com" Date: Fri, 21 Apr 2000 21:35:21 +0000 Subject: [PATCH] Changed to use ToNewUTF8String instead of ToNewCString in order to avoid data loss of non latin1 data, contributed by m_kato@ga2.so-net.ne.jp, r=chuang,nhotta. --- mailnews/addrbook/src/nsAddbookProtocolHandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mailnews/addrbook/src/nsAddbookProtocolHandler.cpp b/mailnews/addrbook/src/nsAddbookProtocolHandler.cpp index 59e9d355d87..82defc70851 100644 --- a/mailnews/addrbook/src/nsAddbookProtocolHandler.cpp +++ b/mailnews/addrbook/src/nsAddbookProtocolHandler.cpp @@ -425,7 +425,7 @@ nsAddbookProtocolHandler::GeneratePrintOutput(nsIAddbookUrl *addbookUrl, else rv = BuildAllHTML(aDatabase, directory, workBuffer); - *outBuf = workBuffer.ToNewCString(); + *outBuf = workBuffer.ToNewUTF8String(); EarlyExit: // Database is open...make sure to close it