UTF-8 filenames conversion problem

edited August 2015 in Acrosync for Windows
I tried today acrosync and immediately got the following error:

rsync: recv_generator: failed to stat
"[five lines of 'РјРЅРѕРі...']": File name too long (36)

The problem occurs with long non-latin names due to a wrong encoding conversion.
It seems that acrosync does not yet support the analogue of --iconv option of the original rsync.

Comments

  • Can you post here the file name that caused the error?

    Acrosync for Windows uses the equivalent of '--iconv=utf16,utf8', i.e., all file names are converted into UTF8 before they are sending to the remote server.
  • The filename is cyrillic, but the windows encoding is cp1251, not utf16. Hence the problem.
  • Internally, Windows should always use UTF16, unless your file system is FAT, not NTFS.

    I still wonder if that error was actually caused by the file name too long for Linux.  What if you exclude that particular file by using the 'Don't sync' setting?  I don't see how the wrong encoding can cause the file name to increase significantly.
  • I am not quite sure how exactly the encoding conversion works. I have windows 7, ntfs, and my folders contain a lot of long cyrillic names. They all are converted into something unreadable and several times as long.

    Probably, I won't be posting here again, since cygwin worked for me perfectly. Just wanted to share a bug.
  • The maximum file name length in Linux is 255, so if your file name is 128 character long then after encoding to UTF8, the length may exceed the linux limit.  For example, when I create a file with this name:

    РјРЅРѕРіРјРЅРѕРіРјРЅРѕРіРјРЅРѕРіРјРЅРѕРіРјРЅРѕРіРјРЅРѕРіРјРЅРѕРіРјРЅРѕРіРјРЅРѕРіРјРЅРѕРіРјРЅРѕРіРјРЅРѕРіРјРЅРѕРіРјРЅРѕРіРјРЅРѕРі

    rsync reports the file name too long error.


    I don't see how rsync on cygwin can get around this problem.  When I tried it on cygwin, it gave out a warning and skipped the file:

    rsync warning: some files vanished before they could be transferred (code 24) at /home/lapo/package/rsync-3.0.9-1/src/rsync-3.0.9/main.c(1052) [sender=3.0.9]



  • i suggest that you use  "Long Path Tool" its an amazing tool google it AND will solve your problem

Sign In or Register to comment.