Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Wed, 24 Nov 2004 11:19:43 -0500 (EST) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: cygwin AT cygwin DOT com Subject: Re: fetching files with Cyrillic file names In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Scanned-By: MIMEDefang 2.39 On Tue, 23 Nov 2004, nemanja wrote: > I am trying to fetch text files from a remote XP machine using SSH/SFTP. > The remote machine is running Cygwin 2.05b.0(1), shell is bash. File names > contain combination of Russian and latin characters. Russian characters > are replaced by '?' when I am listing them. This happens because file names with non-latin characters are stored in Unicode, and Cygwin is not Unicode-aware. > It can not more/less/mv/cp/tar those files. The error I get is > > : No such file or directory > > What I would like to do at the very minimum is to rename them to > latin-only names, and transfer them over. The way I do it locally is set the primary system language to Russian, and the secondary to English. That way, all the prompts are in English, but the system encoding is set to Win1251, which allows one to see and manipulate files with Cyrillic characters. > I do not have sendmail at that machine, and even if I had I would not know > how to attach the files as I can not see them. Therefore I am trying along > the lines of rename+SFTP. > > I would appreciate any solution or hint you might have. The above requires you to have both access to the console and administrative privileges on the XP machine... I also don't know if it would work over ssh for you (although it does seem to for me), and you'd still need a local terminal font with Win1251 encoding. If you are able to set up Cygwin on the XP machine so that you can access files with Cyrillic characters locally, you can then try it over ssh. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "The Sun will pass between the Earth and the Moon tonight for a total Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/