delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/04/12/07:31:18

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
Date: Fri, 12 Apr 2002 13:30:20 +0200 (MEST)
From: Markus Brandt <MaBrandt AT gmx DOT net>
To: cygwin AT cygwin DOT com
MIME-Version: 1.0
Subject: Wrong output with ls and german umlauts
X-Priority: 3 (Normal)
X-Authenticated-Sender: #0000782713 AT gmx DOT net
X-Authenticated-IP: [217.6.184.194]
Message-ID: <3224.1018611020@www50.gmx.net>
X-Flags: 0001

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/

- Raw text -


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