This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Wrong output with ls and german umlauts


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]