http://bugzilla.lyx.org/show_bug.cgi?id=4147

The bug is the result of an encoding failure (use of char instead of 
char_type) that results in an unwanted conversion of a tabulator ('\t') to 
the digit '9'.

I'll commit to branch and trunk on Friday if I get no objections.

Jürgen
Index: src/insets/InsetTabular.h
===================================================================
--- src/insets/InsetTabular.h	(Revision 21284)
+++ src/insets/InsetTabular.h	(Arbeitskopie)
@@ -357,7 +357,7 @@
 	///
 	void plaintext(Buffer const &, odocstream &,
 		       OutputParams const & runparams, int const depth,
-		       bool onlydata, unsigned char delim) const;
+		       bool onlydata, char_type delim) const;
 	///
 	bool isMultiColumn(idx_type cell) const;
 	///
Index: src/insets/InsetTabular.cpp
===================================================================
--- src/insets/InsetTabular.cpp	(Revision 21284)
+++ src/insets/InsetTabular.cpp	(Arbeitskopie)
@@ -2750,7 +2750,7 @@
 
 void Tabular::plaintext(Buffer const & buf, odocstream & os,
 			   OutputParams const & runparams, int const depth,
-			   bool onlydata, unsigned char delim) const
+			   bool onlydata, char_type delim) const
 {
 	// first calculate the width of the single columns
 	vector<unsigned int> clen(columns_);

Reply via email to