https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89562
Bug ID: 89562 Summary: std::filesystem::copy truncates files before byte with value 0x1A Product: gcc Version: 8.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: rodrigo.coimbra at tse dot jus.br Target Milestone: --- Created attachment 45874 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45874&action=edit Source code The function std::filesystem::copy truncates files before byte with value 0x1A. Copying JPEG files demonstrates the bug. Using MinGW-w64 on Windows 7.