rsync-3.0.0pre10 and iconv

sami.pitko at vaisala.com sami.pitko at vaisala.com
Wed Feb 27 11:18:57 GMT 2008


> I think that UTF8 is simply used as the transport encoding.
> The sending side will ensure that the filenames "on the wire"
> are UTF8, and the receiving side will convert that UTF8 into
> whatever is required.

I checked with tcpdump what is being transmitted between the hosts and found that filenames are not in UTF8 during the transfer, unless sending side is using UTF8 natively.

Here's partial packet export from utf-8 to iso8859-1 transfer:

0060  04 18 2f 65 78 61 6d 70 6c 65 2d 66 69 6c 65 2d   ../example-file-
0070  c3 b6 c3 a4 c3 a5 2e 74 78 74 00 05 00 47 2f 99   .......txt...G/.

Here's partial packet export from iso8859-1 to utf-8 transfer:

0060  04 15 2f 65 78 61 6d 70 6c 65 2d 66 69 6c 65 2d   ../example-file-
0070  f6 e4 e5 2e 74 78 74 00 05 00 47 bd f1 c3 a4 81   ....txt...G.....

Transferred / converted filename is still "example-file-öäå.txt".

Regards,
Sami


More information about the rsync mailing list