delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/01/20/10:32:01

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Tue, 20 Jan 2004 10:30:56 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Alexander Shopov <ash AT contact DOT bg>
cc: cygwin AT cygwin DOT com
Subject: Re: Non-trivial Cyrillic question
In-Reply-To: <400D3F1B.4010504@contact.bg>
Message-ID: <Pine.GSO.4.56.0401201027250.14918@slinky.cs.nyu.edu>
References: <400D3F1B DOT 4010504 AT contact DOT bg>
MIME-Version: 1.0

On Tue, 20 Jan 2004, Alexander Shopov wrote:

> Hi guys,
> I successfully downloaded and installed Cygwin on Windows 2000
> Professional. I want to display all cyrillic properly.
> I am a Bulgarian user - so I have a preference for Windows-CP1251 encoding.
> I did the usual meta magic in ~/.inputrc, and now I can input cyrillic
> letters properly in both bash(in command window) and rxvt (non X window
> version)
> So if I do
>
> cat myfile
>
> it is displayed correctly.
> However when I pipe it to less
>
> cat myfile | less
>
> it gets broken
> I get things like: <CF><D0><C5><CF><C8><D1><CA><C0>
> Same thing is when I do
>
> less myfile
>
> Furthermore
> I can touch a file with cyrillic filename
>
> touch ????.txt
>
> but when I do
>
> ls *
>
> it is displayed like
> ????.txt
>
> When I do tab completion under bash , the filename gets displayed correctly.
>
> My filesystem is NTFS.
> In my installation of cygwin nothing sets the LANG and LC environment
> variables.
>
> What should I do?
> I Searched the Internet, FAQs and docs but I get the imression that this
> question is still unanswered.
> I use the Lucida Console TrueType font.
>
> Best regards:
> al_shopov

In your ~/.bashrc:

alias less='/bin/less -r'
alias ls='/bin/ls -F --color=tty --show-control-chars'

Presumably, you can also export "LESS=r" instead of the first alias, but I
don't know how to set ls options via an environment variable.
	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!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
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