change the dump code to dump in UTF8 so we can reduce unnecessary assertion when we turn on nsString

data corruption code
This commit is contained in:
ftang%netscape.com 2000-04-21 21:46:36 +00:00
Родитель c8017ec30e
Коммит 9bbe9a03ae
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -1088,7 +1088,7 @@ NS_IMETHODIMP GlobalWindowImpl::GetScrollY(PRInt32* aScrollY)
NS_IMETHODIMP GlobalWindowImpl::Dump(const nsString& aStr)
{
char *cstr = aStr.ToNewCString();
char *cstr = aStr.ToNewUTF8String();
#ifdef XP_MAC
// have to convert \r to \n so that printing to the console works