Re: [SLUG] localization

From: Dylan William Hardison (dylan@hardison.net)
Date: Mon Sep 15 2008 - 12:36:23 EDT


Spake Eben King on Monday, September 15, 2008 at 11:22AM -0400:
> I picked LANG=C for my shell environment so files would sort according to
> ASCII order, caps then lowers. But, non-ASCII characters such as ø
> (o-slash) in "Bjørk" appear as ? (question mark). If I tab-complete a
> filename, it is correct on the command line, but I can't type them in
> bash/sh. I can make it look right in ls by choosing LANG=en_US, but then
> sorting is all messed up, with caps and lowers sorting together. Is
> there a middle ground where things look correct and sort correctly?
> Bonus if it can be made to look right in Samba too.

If you *just* want to sort in ascii order, you can set LC_COLLATE=POSIX.
e.g. export LC_COLLATE=POSIX.

my locale is as follows:
% locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE=POSIX
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

-- 
Always do right.  This will gratify some people and astonish the rest.
              -- Mark Twain
-
GPG Fingerprint: 1AD8 69DD F56A E7AB 421C  7D8A C66D 87D9 82CD 4AE4.
-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS).  Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 16:56:40 EDT