delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/04/08/20:46:05

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: Fri, 8 Apr 2005 20:45:49 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: ERIC HO <ericmho AT shaw DOT ca>
cc: cygwin AT cygwin DOT com
Subject: Re: vim display funny character under cygwin
In-Reply-To: <153733152061.152061153733@shaw.ca>
Message-ID: <Pine.GSO.4.61.0504082039200.77@slinky.cs.nyu.edu>
References: <153733152061 DOT 152061153733 AT shaw DOT ca>
MIME-Version: 1.0

On Fri, 8 Apr 2005, ERIC HO wrote:

> Hi there, not sure whether this is a cygwin or vim issue. I have a file
> that contains "hello" (note it's really a upside down ,,). When I cat
> the file, it displays correctly like when I use notepad. But when I'm in
> vim editing the file, it shows up as ~Shello~T.

The above is expected behavior.  You're trying to get Vim to open a file
in an encoding that it doesn't know how to display (UTF-8?), so it
substitutes its own character combinations (and colors, if you're in a
color terminal) for those characters that aren't defined in the current
terminal encoding.

You can get Vim to convert the characters for you, provided you set the
correct 'termencoding' and 'fileencoding' combination.  For more
information, run ":help 'termencoding'" and ":help 'fileencoding'" from
inside Vim.

> Very likely it's not a cygwin issue. I'd appreciate if someone has any
> suggestion for me. Thanks. Note: I'm running the latest cygwin packages.

One more point: as described in <http://cygwin.com/problems.html>, the
best way of reporting the status of your installation is by attaching (as
an uncompressed text *attachment*) the output of "cygcheck -svr".  You
probably don't need to do it in this particular case, though, unless you
have other Cygwin-related problems or the answer above is not
satisfactory.
HTH,
	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