-
Notifications
You must be signed in to change notification settings - Fork 669
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
Linux: Encoding problems with non-uft8 locale #6287
Comments
Yep, can reproduce! |
It's neither of the two commits mentioned. It looks like the remote file "tö" gets inserted into the database as "t\xC3\xB6" (which is utf8 for tö, and correct) and stored on the filesystem as "t?". Then the next sync reads it notices the local and db name are different and propagates a rename to the server. |
I don't yet see why this would be a new issue in 2.4: we pass the correct path to |
Yes, same behavior with the 2.3 branch. |
We have tracked this down to a bug in |
There's an upstream bug where QTextCodec::canEncode returns true even though it should be false. This works around that issue and adds a test. The original work was done in 72809ef See #6287, #5676, #5719 See https://bugreports.qt.io/browse/QTBUG-6925
There's an upstream bug where QTextCodec::canEncode returns true even though it should be false. This works around that issue and adds a test. The original work was done in 72809ef See #6287, #5676, #5719 See https://bugreports.qt.io/browse/QTBUG-6925
There's an upstream bug where QTextCodec::canEncode returns true even though it should be false. This works around that issue and adds a test. The original work was done in 72809ef See #6287, #5676, #5719 See https://bugreports.qt.io/browse/QTBUG-6925
@ckamm Thanks for the quick response! Maybe the local state database is rebuilt from the server in 2.4? |
please test and reopen if there is still an issue. Thanks |
Expected behaviour
Files with special characters in the name are synchronized correctly.
Actual behaviour
With the 2.4.0 Linux ownCloud client and locale set to LANG=C,
objects on the server with special characters such as umlauts in the name
get downloaded with the special character replaced by a question mark (?)
and then renamed on the server on the next sync as well.
That's especially bad if the files are in a folder shared with you by someone else...
Steps to reproduce
Server configuration
Doesn't seem to matter much, tested with ownCloud 9.0.8 and 10.0.3.
Client configuration
Client version: 2.4.0 - Problem did not occur with 2.3.3
Operating system: openSUSE Leap 42.3
OS language: LANG=C
Qt version used by client package (Linux only, see also Settings dialog): Qt 5.6.2
Client package: owncloud-client-2.4.0-8911.1.x86_64 (ownCloud)
Logs
Client log - the interesting parts:
Full log: https://gist.github.com/fmkaiser/4f18c2b75b042c1f9d728be87c2f2e07
The text was updated successfully, but these errors were encountered: