DO NOT REPLY [Bug 5162] New: using iconv with pre7 chops last special character in filenames

samba-bugs at samba-bugs at
Wed Dec 26 22:24:37 GMT 2007

           Summary: using iconv with pre7 chops last special character in
           Product: rsync
           Version: 3.0.0
          Platform: x86
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P3
         Component: core
        AssignedTo: wayned at
        ReportedBy: mehoudar at
         QAContact: rsync-qa at

i'm syncing two directories;
src on winxp @ x86
dst on ubunty 7.10 64bit

on my src i have hebrew filenames.
while syncing, filenames are correctly converted to utf8 on the dst (otherwise
they are unreadable on the linux machine) however if a filename ends with a
hebrew charater it's chopped. 
i will examplify this transform:
let a-z signify english letters
and A-Z signify hebrew letters
src filename -> dst filename
abc          -> abc
ABc          -> ABc
ABC          -> AB
A            -> <empty>

I'm using pre release 7 with --enable-iconv=. on both machines.
on cygwin i had to hardcode #define HAVE_ICONV_OPEN 1 into config.h to get it
to comile correctly.


note also that if i use --log-file on the client, the log file shows the
correctly transformed filenames, yet they are created chopped on the dst
note also that simply copying the files from the xp machine using a samba mount
works perfectly.

this error applies both to files and directories.
if a directory was formed malnamed on the dst, then it will not be populated
with anyfiles, only with it's subdirs.

Configure bugmail:
------- 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