public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* AW: Using German Umlauts with bash
@ 2001-01-04 14:55 lw
  2001-01-04 15:58 ` Gerrit P. Haase
  0 siblings, 1 reply; 8+ messages in thread
From: lw @ 2001-01-04 14:55 UTC (permalink / raw)
  To: cygwin

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1298 bytes --]

Klaus, Gerrit,

 >>  >What can/must i do so "ls" (and maybe other tools/commands)
 >> also displays the
 >>  >German umlauts correct.
 >>
 >> Use "ls -N" or "ls --literal" (see ls --help), then the output
 >> is ok. (At least for ls)
 >>
 >
 >Sorry, but this does not work for me, i still get the output with
 >the ? instead of the correct umlauts.

Strange. This is the output on my W2k machine:
-----------------------------------------------------------------
lw@SPAHIS /usr/local/test
$ touch test-äöüß

lw@SPAHIS /usr/local/test
$ ls -l
total 0
-rw-r--r--   1 lw       Kein            0 Jan  4 22:38 test-????

lw@SPAHIS /usr/local/test
$ ls -lN
total 0
-rw-r--r--   1 lw       Kein            0 Jan  4 22:38 test-äöüß

lw@SPAHIS /usr/local/test
$ ls --version
ls (GNU fileutils) 3.16
-----------------------------------------------------------------

The same happens on my Win98 PC.
Did you perhaps type "ls -n" instead of "ls -N" ?

Just an experiment: type "ls -b" and see if the "funny chars" are
quoted then.

lw@SPAHIS /usr/local/test
$ ls -lb
total 0
-rw-r--r--   1 lw       Kein            0 Jan  4 22:38 test-\344\366\374\337


Bei mir funzts, Gerrit... ;-)

- Lars


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 8+ messages in thread
* AW: Using German Umlauts with bash
@ 2001-01-03  2:21 klaus.berndl
  0 siblings, 0 replies; 8+ messages in thread
From: klaus.berndl @ 2001-01-03  2:21 UTC (permalink / raw)
  To: lw, cygwin

>  >What can/must i do so "ls" (and maybe other tools/commands) 
> also displays the
>  >German umlauts correct.
> 
> Use "ls -N" or "ls --literal" (see ls --help), then the output
> is ok. (At least for ls)
> 

Sorry, but this does not work for me, i still get the output with
the ? instead of the correct umlauts.

Klaus

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 8+ messages in thread
* AW: Using German Umlauts with bash
@ 2001-01-02 10:59 lw
  2001-01-02 13:39 ` Gerrit P. Haase
  0 siblings, 1 reply; 8+ messages in thread
From: lw @ 2001-01-02 10:59 UTC (permalink / raw)
  To: cygwin

Hi Klaus,

 >What can/must i do so "ls" (and maybe other tools/commands) also displays the
 >German umlauts correct.

Use "ls -N" or "ls --literal" (see ls --help), then the output
is ok. (At least for ls)

 >For example less displays the German umlauts if i do "export LESSCHARSET=latin1".

Thank you for the tip.

 >>  >What to do so i can type German umlauts on the bash-command-line?
 >>
 >> Don't know, this does not work yet.
 >
 >Yes, this works, look above to the ~./inputrc

You are right, thank you again.

- Lars


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 8+ messages in thread
* AW: Using German Umlauts with bash
@ 2001-01-02  2:51 klaus.berndl
  0 siblings, 0 replies; 8+ messages in thread
From: klaus.berndl @ 2001-01-02  2:51 UTC (permalink / raw)
  To: lw, cygwin

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1494 bytes --]

> I have version 1.1.7 installed. All umlauts display ok with 
> this version.

Ok, i have installed latest Cygwin 1.1.7 and i have created a ~/.inputrc
with the following contents:

set meta-flag on
set convert-meta off
set output-meta on
#set show-all-if-ambiguous on

I have found this in the mailing-archive and it works well for typing
German umlauts. Now i can do

"touch This-Is-A-File-With-One-Umlaut-ä" (last character is the German "a)

Ok, if i then type

"more This-Is-<TAB>"

means i do TAB-completion then bash expands correct to 
"more This-Is-A-File-With-One-Umlaut-ä"

But if i do an "ls" or an "ls -lA" in this directory the dir-list is displayed

...
-rw-r--r-- 1 administ Kein  0 Jan  2 10:43 This-Is-A-File-With-One-Ulaut-?
...

Please note the ? instead of the correct ä (German "a).

What can/must i do so "ls" (and maybe other tools/commands) also displays the
German umlauts correct.

For example less displays the German umlauts if i do "export LESSCHARSET=latin1".
Is there maybe something similar for bash?

> 
>  >What to do so i can type German umlauts on the bash-command-line?
> 
> Don't know, this does not work yet.

Yes, this works, look above to the ~./inputrc

> IMO you should avoid using umlauts in filenames. This often
> causes problems, not only concerning cygwin...

Yes, i agree but often i must read foreign files and directories...

Thanks,
Klaus

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

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

end of thread, other threads:[~2001-01-05 14:14 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-04 14:55 AW: Using German Umlauts with bash lw
2001-01-04 15:58 ` Gerrit P. Haase
2001-01-04 22:02   ` Christopher Abbey
2001-01-05 14:14     ` Gerrit P. Haase
  -- strict thread matches above, loose matches on Subject: below --
2001-01-03  2:21 AW: " klaus.berndl
2001-01-02 10:59 lw
2001-01-02 13:39 ` Gerrit P. Haase
2001-01-02  2:51 klaus.berndl

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).