<feed xmlns='http://www.w3.org/2005/Atom'>
<title>catch3/include/internal/catch_errno_guard.hpp, branch v1.12.2</title>
<subtitle>Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.</subtitle>
<link rel='alternate' type='text/html' href='https://git.progmasoft.com/catch3/'/>
<entry>
<title>Save errno before using sprintf, ifstream.</title>
<updated>2017-03-06T20:51:22+00:00</updated>
<author>
<name>Martin Hořeňovský</name>
</author>
<published>2017-03-06T20:51:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.progmasoft.com/catch3/commit/?id=613e1466f9ef7e068fd08327fd04cfd25df4fb3b'/>
<id>613e1466f9ef7e068fd08327fd04cfd25df4fb3b</id>
<content type='text'>
std::ifstream in libstdc++ contains a bug, where it sets errno to zero.
To work around it, we manually save the errno before using std::ifstream
in debugger check, and reset it after we are done.

We also preventively save errno before using sprintf.

Fixes #835
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
std::ifstream in libstdc++ contains a bug, where it sets errno to zero.
To work around it, we manually save the errno before using std::ifstream
in debugger check, and reset it after we are done.

We also preventively save errno before using sprintf.

Fixes #835
</pre>
</div>
</content>
</entry>
</feed>
