DO NOT REPLY [Bug 5615] iconv conversion not applied to symlinks

samba-bugs at samba.org samba-bugs at samba.org
Fri Mar 27 13:02:19 GMT 2009


https://bugzilla.samba.org/show_bug.cgi?id=5615


per_angstrom at autark.se changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |per_angstrom at autark.se




------- Comment #3 from per_angstrom at autark.se  2009-03-27 08:02 CST -------
I'm having problem with symlinks and rsync (3.05/Ubuntu 9.10) with the --iconv
option. I hope the following terminal log should make it pretty clear what my
problem is:

pang at barbaren:~$ rsync --version
rsync  version 3.0.5  protocol version 30
[..]

pang at barbaren:~$ export LC_ALL=sv_SE.utf8
pang at barbaren:~$ locale
LANG=en_US.utf8
LC_CTYPE="sv_SE.utf8"
LC_NUMERIC="sv_SE.utf8"
LC_TIME="sv_SE.utf8"
LC_COLLATE="sv_SE.utf8"
LC_MONETARY="sv_SE.utf8"
LC_MESSAGES="sv_SE.utf8"
LC_PAPER="sv_SE.utf8"
LC_NAME="sv_SE.utf8"
LC_ADDRESS="sv_SE.utf8"
LC_TELEPHONE="sv_SE.utf8"
LC_MEASUREMENT="sv_SE.utf8"
LC_IDENTIFICATION="sv_SE.utf8"
LC_ALL=sv_SE.utf8
pang at barbaren:~$ mkdir rsync-iconv-test
pang at barbaren:~$ cd rsync-iconv-test
pang at barbaren:~/rsync-iconv-test$ touch ÅÄÖåäöéèñ.txt
pang at barbaren:~/rsync-iconv-test$ ln -s ÅÄÖåäöéèñ.txt symlink
pang at barbaren:~/rsync-iconv-test$ ls -l
total 0
lrwxrwxrwx 1 pang pang 22 2009-03-27 13:23 symlink -> ÅÄÖåäöéèñ.txt
-rw-r--r-- 1 pang pang  0 2009-03-27 13:23 ÅÄÖåäöéèñ.txt

pang at barbaren:~/rsync-iconv-test$ rsync ../rsync-iconv-test /tmp/ -av --iconv
utf8,iso885915
sending incremental file list
rsync-iconv-test/
rsync-iconv-test/symlink -> ÅÄÖåäöéèñ.txt
rsync-iconv-test/ÅÄÖåäöéèñ.txt

sent 192 bytes  received 42 bytes  468.00 bytes/sec
total size is 22  speedup is 0.09

pang at barbaren:~/rsync-iconv-test$ ls -l /tmp/rsync-iconv-test/
total 0
lrwxrwxrwx 1 pang pang 22 2009-03-27 13:23 symlink -> ÅÄÖåäöéèñ.txt
-rw-r--r-- 1 pang pang  0 2009-03-27 13:23 ?????????.txt

pang at barbaren:~/rsync-iconv-test$ export LC_ALL=sv_SE.iso885915
pang at barbaren:~/rsync-iconv-test$ locale
LANG=en_US.utf8
LC_CTYPE="sv_SE.iso885915"
LC_NUMERIC="sv_SE.iso885915"
LC_TIME="sv_SE.iso885915"
LC_COLLATE="sv_SE.iso885915"
LC_MONETARY="sv_SE.iso885915"
LC_MESSAGES="sv_SE.iso885915"
LC_PAPER="sv_SE.iso885915"
LC_NAME="sv_SE.iso885915"
LC_ADDRESS="sv_SE.iso885915"
LC_TELEPHONE="sv_SE.iso885915"
LC_MEASUREMENT="sv_SE.iso885915"
LC_IDENTIFICATION="sv_SE.iso885915"
LC_ALL=sv_SE.iso885915
pang at barbaren:~/rsync-iconv-test$ ls -l /tmp/rsync-iconv-test/
total 0
lrwxrwxrwx 1 pang pang 22 2009-03-27 13:23 symlink ->
���åÀöéÚñ.txt
-rw-r--r-- 1 pang pang  0 2009-03-27 13:23 ÅÄÖåäöéèñ.txt

pang at barbaren:~/rsync-iconv-test$  ls -lL /tmp/rsync-iconv-test/
ls: cannot access /tmp/rsync-iconv-test/symlink: No such file or directory
total 0
l????????? ? ?    ?    ?                ? symlink
-rw-r--r-- 1 pang pang 0 2009-03-27 13:23 ÅÄÖåäöéèñ.txt


-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.


More information about the rsync mailing list