delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/05/17/18:13:44

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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
From: ericblake AT comcast DOT net (Eric Blake)
To: cygwin AT cygwin DOT com, Guido Milanese <gmilanese AT mclink DOT it>
Cc: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>, cygwin AT cygwin DOT com,
guido DOT milanese AT unicatt DOT it
Subject: Re: Sort - locale: cygwin_nt-5.0
Date: Tue, 17 May 2005 22:13:19 +0000
Message-Id: <051720052213.27490.428A6C7F0009183300006B6222007507840A050E040D0C079D0A@comcast.net>
X-Authenticated-Sender: ZXJpY2JsYWtlQGNvbWNhc3QubmV0

> There's very little support for LOCALE settings in Cygwin.  Some
> applications will switch the language of the help messages, etc, to the
> extent gettext() supports it.  I don't believe sort has locale-specific
> collate support -- the coreutils maintainer might be a better person to
> answer that.

Sort requires a working strcoll to do locale-dependent sorts.  But newlib (cygwin's library) provides only a strcoll that is HARD-CODED to the "POSIX" ("C") locale.  Gettext allows localized help messages (LC_MESSAGES generally works on programs compiled with gettext, coreutils included), but does nothing for the other aspects of locales (such as LC_COLLATE).  In other words, unless someone submits a patch to cygwin with a compliant strcoll, you are stuck with non-locale sorts on cygwin.  Sorry.

--
Eric Blake
cygwin coreutils maintainer



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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