-
Notifications
You must be signed in to change notification settings - Fork 817
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
[Bug]: Cannot encode *polish diacritics* to local encoding "windows-1252" #5935
Comments
Can confirm that this can be used as a work-around. Thank you! Still, it's obvious that the Nextcloud client is doing something wrong. NTFS fully supports Unicode in filenames, trying to convert filenames to some locale-dependent character set for any other purpose than displaying the filename in a UI seems like a mistake. |
Thank you to your solution, enable beta solve my synchronisation problem ! |
Ops, not all good :/
|
FWIW, I should add that I encountered this bug in this environment:
I've encountered this problem when trying to sync an existing folder to an empty cloud directory; all files currently in Nextcloud's data directory have been created there by Nextcloud itself; all files' filenames are valid UTF-8 encoded strings and none contain any non-printable characters, Unicode control chars, or characters that would be illegal as part of a Windows filename. At least one directory affected by the bug contains the character U+2606 |
3.9.2 release that was just published fixes the issue, however, if a folder with such files was already synced with 3.9.1, one would need to enforce folder resync by creating an empty file in it in the client or on the server, keeping it open for now, 3.9.2 with some reverts of MSI build dependencies was the fastest solution, but the automatic fix will be introduced in later releases as now it is unclear how to detect such scenario |
Out of pure curiosity, can you point out the commit that fixed the filename encoding problem? Maybe I'm just blind, but I've found nothing in v3.9.1...v3.9.2 that handles filenames or filepaths in any way. |
Those are not in the desktop client branch, all in client-building, the issue is not caused by handling file paths in client code but by yet to be investigated issue with pre-built dependencies. See my reverts here https://github.com/nextcloud/client-building/commits/master |
Thank you for the effort! |
@mgallien FYI, is related to MSI building with Craft dependencies |
inspired by owncloud/client#6820 Close #5935 Signed-off-by: Matthieu Gallien <[email protected]>
inspired by owncloud/client#6820 Close #5935 Signed-off-by: Matthieu Gallien <[email protected]>
Bug description
Nextcloud client didn't warn me about files not being able to be synced. It just skipped checking these files on the remote server, and they didn't appear in my Nextcloud folder as virtual files. When I disabled virtual file support Nextcloud just ignored them silently. I did some debugging including trying to do
convmv -f utf-8 -t utf-8 -r --notest --nfc nextcloud-data-path
server-side, which didn't change any files - on linux they had the proper encoding. I had this in my nextcloud debug archive log:Cannot encode "Zdjęcia" to local encoding "windows-1252"
.Solution
Go to Settings -> Language -> Administrative Language Settings -> Change system locale -> Tick Beta: (lol) Use Unicode UTF-8 for worldwide language support
Reboot
Windows 10.19044.3208
Ubuntu 22.04.2 LTS
27.0.1
3.9.1
Steps to reproduce
Expected behavior
In my opinion Nextcloud isn't reposnisble for windows having a random encoding, but the desktop client shouldn't silently fail on this, it should add a helpful suggestion to check filesystem encoding.
Which files are affected by this bug
nextcloud.sync.discovery C:\Users\sysadmin\AppData\Local\Temp\2\windows-16700\client-building\desktop\src\libsync\discovery.cpp:302
Operating system
Windows
Which version of the operating system you are running.
Windows 10
Package
Other
Nextcloud Server version
27.0.1
Nextcloud Desktop Client version
3.9.1
Is this bug present after an update or on a fresh install?
Fresh desktop client install
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
Are you using an external user-backend?
Nextcloud Server logs
No response
Additional info
This was on a brand new install, since I reinstalled nextcloud as part of debugging process. I'm using
nextcloud-aio
on docker-compose.Seems similar: owncloud/issue/6810, nextcloud forum post
The text was updated successfully, but these errors were encountered: