delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/12/11/16:23:38

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Thu, 11 Dec 2003 16:22:13 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Baldev Soor <soor AT ca DOT ibm DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: Cygwin - Locale Support
In-Reply-To: <OFF11098D9.A6127276-ON85256DF9.00706610-85256DF9.00711953@ca.ibm.com>
Message-ID: <Pine.GSO.4.56.0312111540390.4277@slinky.cs.nyu.edu>
References: <OFF11098D9 DOT A6127276-ON85256DF9 DOT 00706610-85256DF9 DOT 00711953 AT ca DOT ibm DOT com>
Importance: Normal
MIME-Version: 1.0

On Thu, 11 Dec 2003, Baldev Soor wrote:

> I am new to Cygwin and while browsing some of the mailing lists I came
> across your name.

That's great, but please refrain from sending personal mail to Cygwin
developers and users unless specifically requested.  The policy of the
Cygwin community is that all Cygwin-related questions should go to the
main Cygwin mailing list, which can provide much more expertise than any
one person separately.  For your convenience, I've set the "Reply-To:"
appropriately.

> Perhaps you can help me:
>
> 1. In Unix, I can issue the command "locale" and get indication of what the
> LANG=, LC_CTYPE, LC_COLLATE, LC_NUMERIC, LC-MONETARY, LC_TIME, LC_MESSAGES,
> and LC_ALL are set to.  Is this support in Cygwin?

A search for "bin/locale" on <http://cygwin.com/packages/> returns no
results, which leads me to believe that the "locale" command is not
present in Cygwin.

> 2. In Unix, I can issue "export LANG=en_US " to change the locale settings.
> Is this supported in Cygwin?
>
> Any help is appreciated.
> Regards,
> Baldev.

The man page for "setlocale" states that the current implementation is
minimal and doesn't support any locale values except 'C'.

However, the gettext package does provide this functionality.  So, the
answer is, if the application uses gettext, it will be sensitive to the
LC_* settings.  To find out which applications in your installation use
gettext for messages, run

find /usr/share/locale -name \*.mo | sed 's,.*/LC_MESSAGES/,,' | sort -u

To find out which locale values a particular application supports, first
find out which package the application belongs to by running

cygcheck -f /bin/app    # e.g., cygcheck -f /bin/diff

and then run the following, replacing PKGNAME by the name of the package
from the above command

echo `find /usr/share/locale -name PKGNAME.mo | sed -e 's,^/usr/share/locale/,,' -e 's,/LC_MESSAGES/.*,,'`

Hopefully, Chuck Wilson (the gettext maintainer) will correct me if I'm
wrong.  HTH,
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

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