delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/05/10/09:05:31

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:date:from:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; q=dns; s=default; b=lEFdsq1JRpWmG4rt
IUH0tL944+wTLgB0ehU/nO3KegPGaGtPUqfP9c3moLpJNG318baT3vIJ/+O7agNy
gyCG0rSn5HGWEBVl4PC6u8fpi1UeWoCqCENYAoESIZIIGba5xG/mAow5T7UfmjUd
kzddfze3JuaV07kaigxupGqRXoQ=
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:date:from:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; s=default; bh=Y8Mc38FH4qw7Cd5R6ZyGkw
0RJIM=; b=MMWCnvSlxTYhz4ra+jbZsgNLwBe9udLjcNyahK9pYtt8NQMqYTewFI
wjNriCo/v7yTmTFQfOO/RwnyzUR15LxBUDOi9i9rVL/GWgKW8B+SFCXurYive3iH
Hb9vQXoQa5LPgw6cUYMyGVzmV42out0IUzL81FHmauVoX1zrOdJQc=
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=-3.3 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_THEBAT,MIME_BASE64_BLANKS,SPF_SOFTFAIL autolearn=no version=3.3.2
X-HELO: smtpback.ht-systems.ru
Date: Sat, 10 May 2014 16:59:20 +0400
From: Andrey Repin <anrdaemon AT yandex DOT ru>
Reply-To: cygwin AT cygwin DOT com
Message-ID: <1633511138.20140510165920@yandex.ru>
To: Denis Excoffier <cygwin AT Denis-Excoffier DOT org>, cygwin AT cygwin DOT com
Subject: Re: getent group fails
In-Reply-To: <00FFC350-6ABC-407F-A12E-096F3F273BE4@Denis-Excoffier.org>
References: <EF15E076-6965-4517-AA90-C2B1682D12D2 AT Denis-Excoffier DOT org> <20140508091356 DOT GP30918 AT calimero DOT vinschen DOT de> <00FFC350-6ABC-407F-A12E-096F3F273BE4 AT Denis-Excoffier DOT org>
MIME-Version: 1.0
X-IsSubscribed: yes
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id s4AD5PQM016833

Greetings, Denis Excoffier!

>> Thanks for the report.  I made a dumb Copy/paste error.  This should
>> be fixed in the today's snapshot from http://cygwin.com/snapshots/

> Indeed, it is working now.

> Also, i have noticed that 'getent group' produces this line:

> +Utilisateurs authentifiés:S-1-5-11:11:
>  (with \303\251 meaning &eacute;, like under UTF-8)

> while 'getent passwd' produces (among other lines):

> +SERVICE RÉSEAU:*:20:20:,S-1-5-20:/:/sbin/nologin
>   (with \311 meaning &Eacute;, like under ISO-Latin)

> This is with LC_CTYPE=fr_FR, no /etc/nsswitch.conf, /etc/passwd
> and /etc/group with only one line each, domain member with currently no
> network connected, under Cygwin 32bits 'Just Me', installed on top of
> XP SP3 32bits [french only], with snapshot '20140508 19:51:25’,
> and all packages up-to-date.

> If i setenv LC_CTYPE C, or unsetenv LC_CTYPE, i also get UTF-8 for
> 'getent passwd' (ie for both).

Do you by chance set any of the LC_* variables separately anywhere?

> What bothers me is that under LC_CTYPE=fr_FR (or fr_FR AT euro), the
> getent output is not consistent.

I've seen a problem with locales in UTF-8 vs. singlebyte terminal encodings,
but it was supposedly fixed.
But I only set LANG=, and let the subsystem do the magic.


--
WBR,
Andrey Repin (anrdaemon AT yandex DOT ru) 10.05.2014, <16:57>

Sorry for my terrible english...

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019