delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/02/23/13:27:28

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-Id: <36D2F1AA.D671A186@crocodial.de>
Date: Tue, 23 Feb 1999 19:21:30 +0100
From: Benjamin Riefenstahl <benny AT crocodial DOT de>
Organization: Crocodial Communications EntwicklungsGmbH
X-Mailer: Mozilla 4.05 [en] (Win16; I)
MIME-Version: 1.0
To: gnu-win32 AT cygnus DOT com
Subject: Re: "Accented" characters
References: <199902230820 DOT JAA25667 AT bond DOT nexus DOT se> <36D29BB8 DOT 5F803A81 AT crocodial DOT de>
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id NAA05454

Hi everybody,


> Henrik Johansson wrote:
> > There is a couple of problems, however.  When I write (in bash)
> >         ls //c/tmp/l*.txt
> > the response is
> >         //c/tmp/l?smig.txt
> > even though the real filename is "läsmig.txt" (the second character in
> > the filename has the code 228, or 0xE4...it is an 'a' with two dots).

Benjamin Riefenstahl wrote:
>         chcp 1252

Ok, after some private exchange with Dan Herron
<herron AT informatik DOT uni-hamburg DOT de> I caved in and actually tested these
things instead of just shooting from the hip ;-). Note that all that
follows is only tested with b18 (good enough for my occasional tests
until now).

Firstly, in b18 bash needs the complete filename for CHCP, so it's
actually "chcp.com 1252".

Secondly, bash needs some additional configuration in ~/.inputrc (copied
from my Linux box):

>>>>>>>>>>>
set convert-meta Off
set output-meta On
<<<<<<<<<<<

Thirdly and lastly, for ls to show 8-bit chars correctly, the "-N" (AKA
"--literal") option is needed, so

  ls -N

does the job.


so long, benny
======================================
Benjamin Riefenstahl (benny AT crocodial DOT de)
Crocodial Communications EntwicklungsGmbH
Ruhrstr. 61, D-22761 Hamburg, Germany

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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