Page MenuHomePhabricator

utils: Add fstream wrapper to allow to pass unicode filename on Windows
ClosedPublic

Authored by Fabien on Mar 23 2020, 10:47.

Details

Summary
If compiled with mingw, use glibc++ extension stdio_filebuf to open the
file by FILE* instead of filename.

In other condition, we can use boost::fstream.

Backport of core PR13878 and PR15468 (related bug fix).

Depends on D5539.

Test Plan
ninja check
make check

Run the Gitian builds.

Build and run for Windows. Run test_bitcoin on Windows.

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

[Bot Message]
One or more PR numbers were detected in the summary.
Links to those PRs have been inserted into the summary for reference.

This revision is now accepted and ready to land.Mar 23 2020, 22:05