diff -Nru imath-2.1.4/debian/bzr-builder.manifest imath-2.1.4/debian/bzr-builder.manifest --- imath-2.1.4/debian/bzr-builder.manifest 2016-08-01 21:36:21.000000000 +0000 +++ imath-2.1.4/debian/bzr-builder.manifest 2016-08-02 21:31:46.000000000 +0000 @@ -1,2 +1,2 @@ -# bzr-builder format 0.3 deb-version {debupstream}-0~119 -lp:imath revid:git-v1:2cd26a3902b72d551543632d090a10af0238c205 +# bzr-builder format 0.3 deb-version {debupstream}-0~120 +lp:imath revid:git-v1:6e004c34903b97046678e17a988acc28f4e2d003 diff -Nru imath-2.1.4/debian/changelog imath-2.1.4/debian/changelog --- imath-2.1.4/debian/changelog 2016-08-01 21:36:21.000000000 +0000 +++ imath-2.1.4/debian/changelog 2016-08-02 21:31:46.000000000 +0000 @@ -1,8 +1,8 @@ -imath (2.1.4-0~119~ubuntu12.04.1) precise; urgency=low +imath (2.1.4-0~120~ubuntu12.04.1) precise; urgency=low * Auto build. - -- Jan Rheinländer Mon, 01 Aug 2016 21:36:21 +0000 + -- Jan Rheinländer Tue, 02 Aug 2016 21:31:46 +0000 imath (2.1.4) experimental; urgency=low * Add option to suppress units when printing formulas diff -Nru imath-2.1.4/src/smathlexer.lxx imath-2.1.4/src/smathlexer.lxx --- imath-2.1.4/src/smathlexer.lxx 2016-08-01 21:36:21.000000000 +0000 +++ imath-2.1.4/src/smathlexer.lxx 2016-08-02 21:31:46.000000000 +0000 @@ -27,6 +27,7 @@ // This can also be done by calling flex with --nounistd #ifdef _MSC_VER #define YY_NO_UNISTD_H + #include #endif /* Work around an incompatibility in flex (at least versions @@ -945,7 +946,13 @@ const bool smathlexer::begin_include(const std::string &fname) { YY_BUFFER_STATE new_buffer; +#ifdef _MSC_VER + std::wstring_convert> converter; + std::wstring wfname = converter.from_bytes(fname); + FILE *yyin = _wfopen(wfname.c_str(), L"r"); +#else FILE *yyin = fopen(fname.c_str(), "r"); +#endif if (yyin == NULL) { return (false);