mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 07:14:56 +01:00
Fix PBD::copy_file so it works with non-ASCII filenames on windows
This commit is contained in:
parent
4ced10bfe5
commit
8da304be09
1 changed files with 2 additions and 2 deletions
|
|
@ -294,12 +294,12 @@ copy_file(const std::string & from_path, const std::string & to_path)
|
|||
char buf[4096]; // BUFSIZ ??
|
||||
ssize_t nread;
|
||||
|
||||
fd_from = ::open(from_path.c_str(), READ_FLAGS);
|
||||
fd_from = g_open(from_path.c_str(), READ_FLAGS, 0444);
|
||||
if (fd_from < 0) {
|
||||
goto copy_error;
|
||||
}
|
||||
|
||||
fd_to = ::open(to_path.c_str(), WRITE_FLAGS, 0666);
|
||||
fd_to = g_open(to_path.c_str(), WRITE_FLAGS, 0666);
|
||||
if (fd_to < 0) {
|
||||
goto copy_error;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue