Remove bogus ifdocstream constructor argument, which _may_ be the cause of

tex2lyx woes under windows. It may also help chktex under windows
(does it works currently?)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29361 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2009-04-20 15:40:01 +00:00
parent ac5a6ac79a
commit f3038bed06
2 changed files with 3 additions and 3 deletions

View File

@ -320,9 +320,9 @@ const char * iconv_codecvt_facet_exception::what() const throw()
} }
ifdocstream::ifdocstream(string const & encoding) : base() ifdocstream::ifdocstream() : base()
{ {
setEncoding(*this, encoding, in); setEncoding(*this, "UTF-8", in);
} }

View File

@ -45,7 +45,7 @@ typedef std::basic_ostream<char_type> odocstream;
class ifdocstream : public std::basic_ifstream<char_type> { class ifdocstream : public std::basic_ifstream<char_type> {
typedef std::basic_ifstream<char_type> base; typedef std::basic_ifstream<char_type> base;
public: public:
ifdocstream(std::string const & encoding = "UTF-8"); ifdocstream();
explicit ifdocstream(const char* s, explicit ifdocstream(const char* s,
std::ios_base::openmode mode = std::ios_base::in, std::ios_base::openmode mode = std::ios_base::in,
std::string const & encoding = "UTF-8"); std::string const & encoding = "UTF-8");