delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:message-id:date:from:mime-version:to:subject | |
:references:in-reply-to:content-type; q=dns; s=default; b=D8+1eO | |
ex2FQua8rtGMmnyqaeNXAoaCft8Xay7XLRPa4EurYSQ3+yU8oDDg80GcRZigxRg5 | |
ZnZ9fLDrOR45ih+D6ITuqPAXWvg/OhKjeBDsyqlyY7XSGgZGE/jZAmwj5VFapnDn | |
xdEiOFTkTXh7hOz2RbAfEdwVQHcKv3WxNBkJc= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:message-id:date:from:mime-version:to:subject | |
:references:in-reply-to:content-type; s=default; bh=/wUVrUPMjfBY | |
8U82CcmxDAC4sl4=; b=oKTH3itwkeHvXpOdLXvFjrp0/tZKibuwETNQHHtyRofW | |
J2AGbg8xpVH6J3zqTh2C8djeCb+aw9NRUdlHt9HHMnVpTEhyK/fWjIyps3gqr729 | |
ZQV+Nn1ChFWd6E0WFjrvP1SqUxayS2hJcWqEsC4TjaElCaZbckKtDq/OxYFLj/E= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
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 |
Authentication-Results: | sourceware.org; auth=none |
X-Virus-Found: | No |
X-Spam-SWARE-Status: | No, score=-2.4 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 |
X-HELO: | mx1.redhat.com |
Message-ID: | <542B0E9B.2080909@redhat.com> |
Date: | Tue, 30 Sep 2014 14:12:11 -0600 |
From: | Eric Blake <eblake AT redhat DOT com> |
User-Agent: | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.1 |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: locale -uU in ~/.profile |
References: | <m0eqn8$9k$1 AT ger DOT gmane DOT org> |
In-Reply-To: | <m0eqn8$9k$1@ger.gmane.org> |
OpenPGP: | url=http://people.redhat.com/eblake/eblake.gpg |
X-IsSubscribed: | yes |
--TB7ehFKsThqCCMNijmmFOKBCutXqGuwCk Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 09/30/2014 11:53 AM, Andrew DeFaria wrote: > I recently debugged this. I share my home directory from a NetApp filer > such that I can use it from Cygwin or the various Linux machines at my > client (largely CentOS). Recently I started seeing: >=20 > Adefaria-lt:ssh cm-db-ltest01 > locale: invalid option -- 'u' > Try `locale --help' or `locale --usage' for more information. > Cm-db-test01: >=20 > Hunting this down I found that I have a ~/.profile now (didn't have one > before) and contained therein is the following: >=20 > # Set user-defined locale > export LANG=3D$(locale -uU) Sounds like cygwin's base-files should be updated to guard cygwin-specific .profile contents to only occur when uname says it is running on cygwin. I'm sure the maintainer would love patches... >=20 > Turns out that on CentOS locale doesn't support -uU. Now this .profile > came from a refreshing of Cygwin. How best to handle this... You can guard that with something as simple as: case $(uname) in CYGWIN*) export LANG=3D$(locale -uU) ;; esac (hmm, the moment you also share the .profile with a Solaris box, you'd have to use `` instead of $(), but that's another story) --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --TB7ehFKsThqCCMNijmmFOKBCutXqGuwCk Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg iQEcBAEBCAAGBQJUKw6bAAoJEKeha0olJ0NqihEH/iMxV0Zw7EU3niD5pYHt5hOa /vt6Vshqs+YSbs6Gk+5vXAW8AnOeT6kKllRcnkDjbZR0CijgCQN/6SJrcGxVbXsL pZoHI+y71viN3p/3oiIspd6SMosrhdv+4iOcxXSzaIP41xXD6xwfP+H8Zgx4y2aa UljL4ssicZq6tlWLiSejFcGqpFnHMOUL5pqSpYA8a6KhWTBFUmtCIYKk8igN3aHX 7KPDq7POsZlcbNyhXMfrp7CJBhket00uxsl55hE2/RiBkNpNq/rZIHQID5ae46zd vAkt7CzyhIRca6y73DE4l8X08jaSBJvsY/+OhCqkPSd0BgXH3iafCQYqm39C+ls= =EBTf -----END PGP SIGNATURE----- --TB7ehFKsThqCCMNijmmFOKBCutXqGuwCk--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |