scp and character encoding in file names

This is a discussion on scp and character encoding in file names within the OpenSSH Development forums, part of the Networking and Network Related category; ------=_Part_41066_7475473.1161867102731 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello, ...


Go Back   Usenet Forums > Networking and Network Related > OpenSSH Development

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-26-2006
Risto Suominen
 
Posts: n/a
Default scp and character encoding in file names

------=_Part_41066_7475473.1161867102731
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hello,

I got an 'Invalid argument' error when trying to scp a file, with
non-ascii characters in its name, from Linux (ISO 8859-15) to OS X
(UTF-8).

So I made a patch for scp that adds two option flags:

-I: local side uses UTF-8 and remote side uses ISO 8859-15
-U: local side uses ISO 8859-15 and remote side uses UTF-8

and converts the filenames on-the-fly. Maybe it would be useful for
others, as well.

Risto Suominen

ps. The patch seems to work with openssh-4.4p1, too.

------=_Part_41066_7475473.1161867102731
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@mindrot.org
http://lists.mindrot.org/mailman/lis...enssh-unix-dev

------=_Part_41066_7475473.1161867102731--
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:42 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0