You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[OC 10.0][OS X] libsync is able to download files with 4 byte-unicode names but upload etc #5661
changed the title [-][OC 10.0] libsync is able to download files with 4 byte-unicode names but nothing else[/-][+][OC 10.0][OS X] libsync is able to download files with 4 byte-unicode names but nothing else[/+]on Mar 28, 2017
I bet that's because iconv can't convert the string on macOS (cf. #2777 )
i.e: c_utf8_from_locale returns a null string in csync_vio_local_readdir. (because the iconv call itself returns null in c_iconv)
This used to block the whole sync before commit f6cd2c7, but now such file are simply ignored.
So I believe this is a bug in iconv. Maybe we simply need to update iconv.
Alternatively, we should not use iconv at all and use a callback from the Qt code to convert from "UTF-8-MAC", whatever that is. (i guess that's NFD vs. NFC normalisation)
@ogoffart Any proposal for your Qt code?
Alternatively 2: Instead of using POSIX/csync _treaddir we could use something from Qt for reading directories.
changed the title [-][OC 10.0][OS X] libsync is able to download files with 4 byte-unicode names but nothing else[/-][+][OC 10.0][OS X] libsync is able to download files with 4 byte-unicode names but upload etc[/+]on Apr 19, 2017
Activity
guruz commentedon Mar 28, 2017
Note that this might be macOS specific because we have to do file name mangling on macOS https://github.com/owncloud/client/search?utf8=%E2%9C%93&q=normalization&type= .
How does it look on other OS?
@michaelstingl this would mandate an earlier 2.3.2
SamuAlfageme commentedon Mar 28, 2017
@guruz you're right, I assumed the name-conversion error was platform-independent but just tried with Win10 and no flags were raised there. My bad 😅
[-][OC 10.0] libsync is able to download files with 4 byte-unicode names but nothing else[/-][+][OC 10.0][OS X] libsync is able to download files with 4 byte-unicode names but nothing else[/+]michaelstingl commentedon Mar 28, 2017
Works for me
ogoffart commentedon Mar 29, 2017
I bet that's because iconv can't convert the string on macOS (cf. #2777 )
i.e: c_utf8_from_locale returns a null string in csync_vio_local_readdir. (because the iconv call itself returns null in c_iconv)
This used to block the whole sync before commit f6cd2c7, but now such file are simply ignored.
So I believe this is a bug in iconv. Maybe we simply need to update iconv.
Alternatively, we should not use iconv at all and use a callback from the Qt code to convert from "UTF-8-MAC", whatever that is. (i guess that's NFD vs. NFC normalisation)
guruz commentedon Apr 19, 2017
We use the system iconv.
@ogoffart Any proposal for your Qt code?
Alternatively 2: Instead of using POSIX/csync _treaddir we could use something from Qt for reading directories.
guruz commentedon Apr 19, 2017
maybe https://doc.qt.io/qt-5/qfile.html#decodeName-1 ..
guruz commentedon Apr 19, 2017
This is messy. I'm trying a few things but I think this is too invasive for a patch release.
[-][OC 10.0][OS X] libsync is able to download files with 4 byte-unicode names but nothing else[/-][+][OC 10.0][OS X] libsync is able to download files with 4 byte-unicode names but upload etc[/+]macOS: Emoji support WiP #5661
guruz commentedon Apr 21, 2017
@michaelstingl @pmaier1 Moving to 2.4, the needed patch is too invasive
csync: Use Qt for encodeing/decoding filesystem strings
SamuAlfageme commentedon Sep 26, 2017
👍