mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 02:25:34 +00:00
fix bug in the SaveDocument code.
This commit is contained in:
parent
f7c7595830
commit
c872bec44c
@ -3220,7 +3220,7 @@ nsDocument::SaveFile(nsFileSpec* aFileSpec,
|
||||
charsetStr.AssignWithConversion("ISO-8859-1");
|
||||
}
|
||||
}
|
||||
encoder->SetCharset(aSaveCharset);
|
||||
encoder->SetCharset(charsetStr);
|
||||
|
||||
rv = encoder->EncodeToStream(stream.GetIStream());
|
||||
|
||||
|
@ -3220,7 +3220,7 @@ nsDocument::SaveFile(nsFileSpec* aFileSpec,
|
||||
charsetStr.AssignWithConversion("ISO-8859-1");
|
||||
}
|
||||
}
|
||||
encoder->SetCharset(aSaveCharset);
|
||||
encoder->SetCharset(charsetStr);
|
||||
|
||||
rv = encoder->EncodeToStream(stream.GetIStream());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user