delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/11/24/11:20:08

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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 <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
Subject: Re: fetching files with Cyrillic file names
In-Reply-To: <Pine.HPX.4.10.10411231416010.15499-100000@druggist.gg.caltech.edu>
Message-ID: <Pine.GSO.4.61.0411241103580.14489@slinky.cs.nyu.edu>
References: <Pine DOT HPX DOT 4 DOT 10 DOT 10411231416010 DOT 15499-100000 AT druggist DOT gg DOT caltech DOT edu>
MIME-Version: 1.0
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
>
> <File_name_with_?_instead_of_cyrillic_chars>: 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019