filenames with extra characters like "é,è,ö ..." with rsync

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

filenames with extra characters like "é,è,ö ..." with rsync

Didier Wiroth
Hello,
I'm trying to rsync via a netware and an openbsd machine.
The problem is that files with filenames like "idie.doc" are stored
on Openbsd like this "id\#202e.doc".

How can I tell Openbsd to use the correct codepage when using rsync?

Thank you very much!

- -
Didier Wiroth

CEDIES
route d'Esch, 211
L-1471 Luxembourg
Tel: (+352) 478-8669
Fax: (+352) 478-9-8669
Web: http://www.cedies.public.lu
GPG Key ID: 9A8B2ACA
GPG Fingerprint:  6FF8 4362 F880 F7A8 A708 9F0D 3DD2 0502 9A8B 2ACA

Reply | Threaded
Open this post in threaded view
|

RE: filenames with extra characters like "é,è,ö ..." with rsync

Didier Wiroth
Oups ... forgot to mention that I'm using:
$ uname -a
OpenBSD backup 4.0 GENERIC#1 i386
+
$ rsync --version
rsync  version 2.6.8  protocol version 29

- -
Didier Wiroth  

> -----Original Message-----
> From: [hidden email] [mailto:[hidden email]]
> On Behalf Of Didier Wiroth
> Sent: 02 October 2006 14:18
> To: [hidden email]
> Subject: filenames with extra characters like "i,h,v ..." with rsync
>
> Hello,
> I'm trying to rsync via a netware and an openbsd machine.
> The problem is that files with filenames like "idie.doc" are
> stored on Openbsd like this "id\#202e.doc".
>
> How can I tell Openbsd to use the correct codepage when using rsync?
>
> Thank you very much!
>
> - -
> Didier Wiroth
>
> CEDIES
> route d'Esch, 211
> L-1471 Luxembourg
> Tel: (+352) 478-8669
> Fax: (+352) 478-9-8669
> Web: http://www.cedies.public.lu
> GPG Key ID: 9A8B2ACA
> GPG Fingerprint:  6FF8 4362 F880 F7A8 A708 9F0D 3DD2 0502 9A8B 2ACA

Reply | Threaded
Open this post in threaded view
|

Re: filenames with extra characters like "é,è,ö ..." with rsync

Christian Weisgerber
In reply to this post by Didier Wiroth
Didier Wiroth <[hidden email]> wrote:

> I'm trying to rsync via a netware and an openbsd machine.
> The problem is that files with filenames like "idie.doc" are stored
> on Openbsd like this "id\#202e.doc".
>
> How can I tell Openbsd to use the correct codepage when using rsync?

You need to tell rsync with -8.

(I didn't know that.  When I saw your question I skimmed through
the rsync man page.  You could have done that, too.)

--
Christian "naddy" Weisgerber                          [hidden email]

Reply | Threaded
Open this post in threaded view
|

RE: filenames with extra characters like "é,è,ö ..." with rsync

Didier Wiroth
Hello,
Thanks, but I already did that, and I currently use this option. ;-)
This options strips/removes the special characters, isn't it possible to to store the files
with the the extra characters?

- -
Didier Wiroth  

> -----Original Message-----
> From: [hidden email] [mailto:[hidden email]]
> On Behalf Of Christian Weisgerber
> Sent: 02 October 2006 15:24
> To: [hidden email]
> Subject: Re: filenames with extra characters like "i,h,v ..."
> with rsync
>
> Didier Wiroth <[hidden email]> wrote:
>
> > I'm trying to rsync via a netware and an openbsd machine.
> > The problem is that files with filenames like "idie.doc"
> are stored on
> > Openbsd like this "id\#202e.doc".
> >
> > How can I tell Openbsd to use the correct codepage when using rsync?
>
> You need to tell rsync with -8.
>
> (I didn't know that.  When I saw your question I skimmed
> through the rsync man page.  You could have done that, too.)
>
> --
> Christian "naddy" Weisgerber                          
> [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: RE: filenames with extra characters like "é,è,ö ..." with rsync

Christian Weisgerber
Didier Wiroth <[hidden email]> wrote:

> Thanks, but I already did that, and I currently use this option. ;-)
> This options strips/removes the special characters,

No, it doesn't.  Not in the general case.

> isn't it possible to to store the files with the the extra characters?

I just tried rsyncing a few files with 8-bit characters in their
names between two OpenBSD boxes and there is no problem whatsoever.
-8 isn't even needed.

--
Christian "naddy" Weisgerber                          [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: filenames with extra characters like "é,è,ö ..." with rsync

Didier Wiroth
Christian Weisgerber wrote:
> No, it doesn't.  Not in the general case.
>
>  
I didn't say it does all the time, that's why I mentionned between
netware and openbsd.
Between netware and openbsd, it does replace the characters with a "?".
> I just tried rsyncing a few files with 8-bit characters in their
> names between two OpenBSD boxes and there is no problem whatsoever.
> -8 isn't even needed.
Yes, perhaps in your case, but between netware and openbsd, there are
problems. Please
not that I didn't say it is an openbsd problem ;-), I was asking if
there is a work around.

Here is an "ls -la" on openbsd host after the files have been downloaded
(with "rsync -a") note the "?":
drwxr-xr-x   4 dda  wheel    1024 Jan 12  2005 rapport d'activit?s 2000
drwxr-xr-x   2 dda  wheel    1536 Jan 12  2005 rapport d'activit?s 2001
drwxr-xr-x   5 dda  wheel     512 May 24 11:10 rapport d'activit?s 2002
drwxr-xr-x   2 dda  wheel     512 May 24 11:09 rapport d'activit?s 2003
drwxr-xr-x   2 dda  wheel     512 May 24 11:08 rapport d'activit?s 2004
drwxr-xr-x   2 dda  wheel     512 Jul 26 16:06 rapport d'activit?s 2005
-rwxr-xr-x   4 dda  wheel   46080 Sep 22 15:21 FOIRE aper?u historique 2.doc
-rwxr-xr-x   4 dda  wheel   41984 Sep 22 13:55 FOIRE aper?u historique.doc

And, Yes the "rsync -a -8" option does not change anything when using
the archive mode, but it does remove the special charactes (in our case)
when simply listing the files here is an example:
(I'm doing the rsync on a openbsd box, the rsync lists the files on the
netware server)
"rsync our_netware_server::"
drwxrwxrwx           0 2005/01/12 15:12:44 rapport d'activit\#202s 2000
drwxrwxrwx           0 2005/01/12 14:59:40 rapport d'activit\#202s 2001
drwxrwxrwx           0 2006/05/24 11:10:18 rapport d'activit\#202s 2002
drwxrwxrwx           0 2006/05/24 11:09:36 rapport d'activit\#202s 2003
drwxrwxrwx           0 2006/05/24 11:08:44 rapport d'activit\#202s 2004
drwxrwxrwx           0 2006/07/26 16:06:08 rapport d'activit\#202s 2005
-rwxrwxrwx       46080 2006/09/22 15:21:22 FOIRE aper\#207u historique 2.doc
-rwxrwxrwx       41984 2006/09/22 13:55:20 FOIRE aper\#207u historique.doc

and now:
"rsync -8 our_netware_server::"
drwxrwxrwx           0 2005/01/12 15:12:44 rapport d'activits 2000
drwxrwxrwx           0 2005/01/12 14:59:40 rapport d'activits 2001
drwxrwxrwx           0 2006/05/24 11:10:18 rapport d'activits 2002
drwxrwxrwx           0 2006/05/24 11:09:36 rapport d'activits 2003
drwxrwxrwx           0 2006/05/24 11:08:44 rapport d'activits 2004
drwxrwxrwx           0 2006/07/26 16:06:08 rapport d'activits 2005
-rwxrwxrwx       46080 2006/09/22 15:21:22 FOIRE aperu historique 2.doc
-rwxrwxrwx       41984 2006/09/22 13:55:20 FOIRE aperu historique.doc














--
Didier Wiroth

CEDIES
route d'Esch, 211
L-1471 Luxembourg
Tel: (+352) 478-8669
Fax: (+352) 478-9-8669
Web: http://www.cedies.public.lu
GPG Key ID: 9A8B2ACA
GPG Fingerprint:  6FF8 4362 F880 F7A8 A708 9F0D 3DD2 0502 9A8B 2ACA

Reply | Threaded
Open this post in threaded view
|

Re: filenames with extra characters like "é,è,ö ..." with rsync

Stuart Henderson
On 2006/10/04 10:23, Didier Wiroth wrote:
> Here is an "ls -la" on openbsd host after the files have been downloaded
> (with "rsync -a") note the "?":

try specifying the -q option to ls(1).

Reply | Threaded
Open this post in threaded view
|

Re: filenames with extra characters like "é,è,ö ..." with rsync

Didier Wiroth
Stuart Henderson wrote:
> On 2006/10/04 10:23, Didier Wiroth wrote:
>  
>> Here is an "ls -la" on openbsd host after the files have been downloaded
>> (with "rsync -a") note the "?":
>>    
>
> try specifying the -q option to ls(1).
>  
Hello,
Thanks, but same results:

$ ls -laq
drwxr-xr-x   4 dda  wheel    1024 Jan 12  2005 rapport d'activit?s 2000
drwxr-xr-x   2 dda  wheel    1536 Jan 12  2005 rapport d'activit?s 2001
drwxr-xr-x   5 dda  wheel     512 May 24 11:10 rapport d'activit?s 2002
drwxr-xr-x   2 dda  wheel     512 May 24 11:09 rapport d'activit?s 2003
drwxr-xr-x   2 dda  wheel     512 May 24 11:08 rapport d'activit?s 2004
drwxr-xr-x   2 dda  wheel     512 Jul 26 16:06 rapport d'activit?s 2005

Regards

--
Didier Wiroth