[Bug libstdc++/70609] std::experimental::filesystem::copy fails if the file size is 0 bytes

2016-05-25 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70609 Jonathan Wakely changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug libstdc++/70609] std::experimental::filesystem::copy fails if the file size is 0 bytes

2016-05-25 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70609 --- Comment #6 from Jonathan Wakely --- Author: redi Date: Wed May 25 15:44:15 2016 New Revision: 236720 URL: https://gcc.gnu.org/viewcvs?rev=236720=gcc=rev Log: libstdc++/70609 fix filesystem::copy() Backport from mainline 2016-04-19

[Bug libstdc++/70609] std::experimental::filesystem::copy fails if the file size is 0 bytes

2016-05-25 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70609 --- Comment #5 from Jonathan Wakely --- Author: redi Date: Wed May 25 15:42:40 2016 New Revision: 236711 URL: https://gcc.gnu.org/viewcvs?rev=236711=gcc=rev Log: libstdc++/70609 fix filesystem::copy() Backport from mainline 2016-04-19

[Bug libstdc++/70609] std::experimental::filesystem::copy fails if the file size is 0 bytes

2016-04-19 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70609 --- Comment #4 from Jonathan Wakely --- Fixed on trunk so far.

[Bug libstdc++/70609] std::experimental::filesystem::copy fails if the file size is 0 bytes

2016-04-19 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70609 --- Comment #3 from Jonathan Wakely --- Author: redi Date: Tue Apr 19 18:02:39 2016 New Revision: 235215 URL: https://gcc.gnu.org/viewcvs?rev=235215=gcc=rev Log: libstdc++/70609 fix filesystem::copy() PR libstdc++/70609 *

[Bug libstdc++/70609] std::experimental::filesystem::copy fails if the file size is 0 bytes

2016-04-11 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70609 --- Comment #2 from Jonathan Wakely --- The problem is due to my lazy approach to copying the file: __gnu_cxx::stdio_filebuf sbin(in.fd, std::ios::in); __gnu_cxx::stdio_filebuf sbout(out.fd, std::ios::out); if (

[Bug libstdc++/70609] std::experimental::filesystem::copy fails if the file size is 0 bytes

2016-04-11 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70609 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|

[Bug libstdc++/70609] std::experimental::filesystem::copy fails if the file size is 0 bytes

2016-04-09 Thread fruko_eto at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70609 --- Comment #1 from furkan --- Also worth to note that I've tested a similar program with Boost::Filesystem, QFile and Poco::File they all worked, so I don't think there is a system-related bug