public inbox for gentoo-user-de@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Jörg Schaible" <joerg.schaible@gmx.de>
To: gentoo-user-de@lists.gentoo.org
Subject: [gentoo-user-de]  Re: locale, LC_COLLATE
Date: Tue, 26 Aug 2008 12:09:27 +0200	[thread overview]
Message-ID: <g90kon$a6l$1@ger.gmane.org> (raw)
In-Reply-To: 48B3C4B2.1090608@berlin.de

Hi Max,

Max Bloch wrote:

> Hallo liebe Gentoo-Mitbenutzer,
> 
> ich suche nach einer Möglichkeit die Sortierung bei der Anzeige von
> Verzeichnisinhalten zu beeinflussen. So weit ich weiss, soll mein locale
> dafür verantwortlich sein und genauer gesagt die Variable LC_COLLATE.
> Sie ist bei mir wie folgt gesetzt:
> 
> # locale
> ...
> LC_COLLATE="de_DE.UTF-8"
> ...
> 
> Hier ist ein Beispiel wie bei mir ein Verzeichnisinhalt angezeigt wird:
> 
> # ls
> A
> !B
> C
> 
> Ich wünschte mir jedoch folgende Ausgabe:
> 
> # ls
> !B
> A
> C
> 
> das Ausrufezeichen soll also nicht ignoriert werden, sondern den
> Buchstaben vorangesetzt werden. Weiss jemand wie ich das umsetzen kann?
> Am liebsten Systemweit und nicht nur ls spezifisch.

Bevor Dir jemand eine Lösung schickt, solltest Du auch noch die Umlaute mit
einbeziehen:

# ls
A/  Ä/  !B/  C/
# LC_COLLATE=de ls
!B/  A/  C/  ??/
# LC_COLLATE=de.UTF_8 ls
!B/  A/  C/  ??/
# LC_COLLATE=en_US.UTF_8 ls
A/  Ä/  !B/  C/

d.h. nur wenn ein UTF-8-Locale verwendet wird, werden auch die
nicht-ASCII-Zeichen richtig angezeigt, damit erbst Du aber gleichzeitig
auch die von Dir nicht gewünschte Sortierung ...

- Jörg

BTW: Start nächstes mal einen eigenen Thread für ein neues Thema ...




  reply	other threads:[~2008-08-26 10:09 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-22  8:14 [gentoo-user-de] xfs errors Gerrit Kühn
2008-08-26  8:54 ` [gentoo-user-de] locale, LC_COLLATE Max Bloch
2008-08-26 10:09   ` Jörg Schaible [this message]
2008-08-26 16:50   ` Dirk Heinrichs
2008-08-27  7:43     ` [gentoo-user-de] " Jörg Schaible
2008-08-27  9:40       ` Dirk Heinrichs
2008-08-27  9:44         ` Arnold Krille
2008-08-27 12:08         ` [gentoo-user-de] " Jörg Schaible
2008-08-27 12:17           ` Dirk Heinrichs
2008-08-27 13:25     ` [gentoo-user-de] " Max Bloch
2008-08-26 16:24 ` [gentoo-user-de] xfs errors Stefan Onken

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='g90kon$a6l$1@ger.gmane.org' \
    --to=joerg.schaible@gmx.de \
    --cc=gentoo-user-de@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox