public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Wrong output with ls and german umlauts
@ 2002-04-12  4:41 Markus Brandt
  2002-04-12  4:53 ` Corinna Vinschen
  0 siblings, 1 reply; 2+ messages in thread
From: Markus Brandt @ 2002-04-12  4:41 UTC (permalink / raw)
  To: cygwin

Hello,

I'm using Cygwin under a german Windows XP.
When listening files or directories which contains umlauts - like ä, ö, ü,
Ä, Ö, Ü or ß - th ls command only prints a '?' in place where the umlauts
should be.

While investigating the newsgroups and FAQs I found that this problem is
often mentioned but never solved.
I tried the proposed settings in the .inputrc (set convert-meta off; set
input-meta on; set output-meta on) as well as different codepages (850 (standard
cp), 1250, 1252, 437).
Nothing worked.
Interestingly the output is correct when piped through another command like
cat or less. And the bash shell gives the right output too when using the
buildin command echo (see example).

How can I ls configure print the right chars? Or is there a bug within it?

Here are my testing examples:
	C:\TEMP\foo>chcp
	Aktive Codepage: 850.

	C:\TEMP\foo>dir
	 Verzeichnis von C:\TEMP\foo

	12.04.2002  12:29    <DIR>          .
	12.04.2002  12:29    <DIR>          ..
	12.04.2002  12:29                 0 bar_ä_ö_ü
	12.04.2002  12:29                 0 bar_ae_oe_ue
	               2 Datei(en)              0 Bytes

	C:\TEMP\foo>bash
	bash-2.05a$ echo *
	bar_ae_oe_ue bar_ä_ö_ü

	bash-2.05a$ /bin/ls -C
	bar_ae_oe_ue  bar_?_?_?

	bash-2.05a$ /bin/ls -C | cat
	bar_ae_oe_ue  bar_ä_ö_ü

	bash-2.05a$ exit
	exit

	bash-2.05a$ /bin/ls -C | less -FX
	bar_ae_oe_ue  bar_<E4>_<F6>_<FC>

	bash-2.05a$ /bin/ls -C | less -FXr
	bar_ae_oe_ue  bar_ä_ö_ü


Many thanks for your help
Markus Brandt


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Wrong output with ls and german umlauts
  2002-04-12  4:41 Wrong output with ls and german umlauts Markus Brandt
@ 2002-04-12  4:53 ` Corinna Vinschen
  0 siblings, 0 replies; 2+ messages in thread
From: Corinna Vinschen @ 2002-04-12  4:53 UTC (permalink / raw)
  To: cygwin

On Fri, Apr 12, 2002 at 01:30:20PM +0200, Markus Brandt wrote:
> Hello,
> 
> I'm using Cygwin under a german Windows XP.
> When listening files or directories which contains umlauts - like ä, ö, ü,
> Ä, Ö, Ü or ß - th ls command only prints a '?' in place where the umlauts
> should be.

That has nothing to do with Cygwin but is default behaviour of ls.
When output is a tty, it doesn't print only printable ASCII chars
(32 <= char <= 126).  The option you're searching for is
--show-control-chars.  The man page is your friend!

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-04-12 11:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-12  4:41 Wrong output with ls and german umlauts Markus Brandt
2002-04-12  4:53 ` Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).