Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discovery: Windows: Don't check if a server file name can be encoded #6820

Merged
merged 1 commit into from
Oct 18, 2018

Conversation

ogoffart
Copy link
Contributor

Because on windows, all filename can be encoded: The file system uses
UTF-16, regardless of the locale

Issue: #6810

@ogoffart ogoffart requested a review from ckamm October 17, 2018 13:31
@@ -147,7 +148,7 @@ static int _csync_detect_update(CSYNC *ctx, std::unique_ptr<csync_file_stat_t> f
}

auto localCodec = QTextCodec::codecForLocale();
if (ctx->current == REMOTE_REPLICA && localCodec->mibEnum() != 106) {
if (!OCC::Utility::isWindows() && ctx->current == REMOTE_REPLICA && localCodec->mibEnum() != 106) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a comment about why windows is excluded.

Because on windows, all filename can be encoded: The file system uses
UTF-16, regardless of the locale

Issue: #6810
@ogoffart ogoffart merged commit c24e270 into 2.5 Oct 18, 2018
@ogoffart ogoffart deleted the fix-6810 branch October 18, 2018 10:46
mgallien added a commit to nextcloud/desktop that referenced this pull request Aug 14, 2023
mgallien added a commit to nextcloud/desktop that referenced this pull request Aug 16, 2023
mgallien added a commit to nextcloud/desktop that referenced this pull request Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants