Abdel, revision 21967 broke plaintext output. No plaintext file is generated, 
instead, an empty file named "UTF-8" is generated in the working directory.

The attached patch (against branch) fixes it, but still 
odocfstream::odocfstream(string const & encoding) obviously doesn't work as 
intended.

Jürgen
Index: src/output_plaintext.cpp
===================================================================
--- src/output_plaintext.cpp	(Revision 22326)
+++ src/output_plaintext.cpp	(Arbeitskopie)
@@ -41,7 +41,8 @@
 void writePlaintextFile(Buffer const & buf, FileName const & fname,
 	OutputParams const & runparams)
 {
-	odocfstream ofs("UTF-8");
+	odocfstream ofs;
+	ofs << setEncoding("UTF-8");
 	if (!openFileWrite(ofs, fname))
 		return;
 	writePlaintextFile(buf, ofs, runparams);

Reply via email to