This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: getent group fails
- From: Andrey Repin <anrdaemon at yandex dot ru>
- To: Denis Excoffier <cygwin at Denis-Excoffier dot org>, cygwin at cygwin dot com
- Date: Sat, 10 May 2014 16:59:20 +0400
- Subject: Re: getent group fails
- Authentication-results: sourceware.org; auth=none
- 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>
- Reply-to: cygwin at cygwin dot com
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 é, 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 É, 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@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@yandex.ru) 10.05.2014, <16:57>
Sorry for my terrible english...