Opened 8 years ago
#11013 new Bugs
file_descriptor_sink won't create a file in "app" mode
Reported by: | Owned by: | Jonathan Turkanis | |
---|---|---|---|
Milestone: | To Be Determined | Component: | iostreams |
Version: | Boost 1.57.0 | Severity: | Problem |
Keywords: | Cc: |
Description
When file_descriptor_sink(filename, ios::app) is used on Linux, it refuses to create the file if the file doesn't already exist.
This is inconsistent with std::ofstream's behavior with ios::app, and it's inconsistent with file_descriptor_sink's behavior on Windows (where it does create the file if it doesn't exist).
See pull request 9 on the boostorg/iostreams GitHub repository.
Note:
See TracTickets
for help on using tickets.