Skip to content

Commit

Permalink
added conversion using the system locale
Browse files Browse the repository at this point in the history
  • Loading branch information
Nethius committed Dec 26, 2023
1 parent 6fd1ea2 commit 67f29ac
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions client/core/servercontroller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,14 @@ ErrorCode ServerController::uploadFileToHost(const ServerCredentials &credential
localFile.write(data);
localFile.close();

#ifdef Q_OS_WINDOWS
error = m_sshClient.sftpFileCopy(overwriteMode, localFile.fileName().toLocal8Bit().toStdString(), remotePath.toStdString(),
"non_desc");
#else
error = m_sshClient.sftpFileCopy(overwriteMode, localFile.fileName().toStdString(), remotePath.toStdString(),
"non_desc");
#endif

if (error != ErrorCode::NoError) {
return error;
}
Expand Down

0 comments on commit 67f29ac

Please sign in to comment.