]> git.lyx.org Git - lyx.git/commit
Avoid encoding changes of open streams if possible
authorGeorg Baum <baum@lyx.org>
Sun, 31 Jan 2016 11:49:17 +0000 (12:49 +0100)
committerGeorg Baum <baum@lyx.org>
Sun, 31 Jan 2016 11:49:17 +0000 (12:49 +0100)
commit92d0835e1488e679cdc15ee6acba69772b6684cd
treedc7912e3a4afcac0fa17f8eeb6241481b1917e10
parent250b0581927efbd8fd3dfdb2d513e01d75fec802
Avoid encoding changes of open streams if possible

Changing the codecvt_facet of a file stream after the file has been opened
does not work with clang on OS X. Therefore we avoid it if possible (i. e. the
new encoding is the same as the old one).
src/support/docstream.cpp
src/support/docstream.h