delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/02/13/17:20:41

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=v5Y0UUj7PP9ishN3
V6WEKEvhW6sSvcYF2WNQ60dIy/S6T0dEPSsbj5GLUNGz90OT6hi/B7sJHyrvo03f
kbV7mNsHPwgqJ+2j53GA+xrMy2ip8R/OqRhQVh2mMcrtUDcjAsQ+kts7ksbffVne
iGFvc3Q2AYfAbpRUQBpLZp8iAKY=
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=HBveIasQFCaUN4eSIaUb07
7TKXw=; b=ZwzQ8ajXN0gj3vZjvJBZglBuJ0+/UTOgccnuU/z0y9G8DOzgnepiUP
xmHukqTOztiA/7Uke3/Mt5sX/nfmbRGa09Ozsac8w44NJwhADFgwgz/boYeJrccB
LymYy0ch0+RbUXMwL/Q3QgKoPrbngUX9d3/VEABRhHhXVW6yMlNXM=
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.9 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_THEBAT,SPF_SOFTFAIL autolearn=no version=3.3.2
X-HELO: smtpback.ht-systems.ru
Date: Fri, 14 Feb 2014 02:11:13 +0400
From: Andrey Repin <anrdaemon AT yandex DOT ru>
Reply-To: Andrey Repin <cygwin AT cygwin DOT com>
Message-ID: <1717869165.20140214021113@mtu-net.ru>
To: Corinna Vinschen <cygwin AT cygwin DOT com>
Subject: New passwd/group handling in Cygwin - test results and observations
In-Reply-To: <20140213143849.GH2246@calimero.vinschen.de>
References: <20140213143849 DOT GH2246 AT calimero DOT vinschen DOT de>
MIME-Version: 1.0
X-IsSubscribed: yes

Greetings, Corinna Vinschen!

> This week I applied the first incarnation of the new passwd/group
> handling code to the Cygwin repository and after fixing a crash which
> manifested in Denis Excoffier's network, I think we're at a point
> which allows to push this forward.

Oookaaaay... What to say about it?...
First impression is "oh my god, did I bought a new rig?"

$ uname -a
CYGWIN_NT-5.1 daemon2 1.7.29s(0.271/5/3) 20140213 14:06:26 i686 Cygwin

mintty startup is almost instant. Same with diff in native console.
I have no idea, what you did, I don't even have a good explanation of why it
happened. My /etc/passwd is about 1.5kb, half that - /etc/group.

I only dumped new cygwin1.dll into place and not changed anything else.
I'm going to run unattended tests just to prove I'm not dreaming.

HOWEVER, here's a first bug. Actually, it was a long standing issue, that
I've been discarding as nonessential, but since you are here already, can we
have a bit of attention?

The issue can be observed when you have a user or group name containing
characters outside basic ASCII character set. Even western diacritics will
suffice.

Add somewhere in your startup files an equivalent of the following block:
(I have it in private .profile)

---->8-------->8-------->8-------->8-------->8-------->8-------->8----
case "$TERM" in
  xterm*)
    LANG=ru_RU.UTF-8
    ;;
  *)
    LANG=ru_RU.CP866
    ;;
esac

export PATH HISTCONTROL LANG
----8<--------8<--------8<--------8<--------8<--------8<--------8<----

restart your shell, and try to ls -l a directory, where you have files owned
by abovementioned user/group.

Try it in mintty(the encoding will be UTF-8 and names will show up readable)
and in native console (with appropriate single-byte encoding, the names will
still be printed in unicode, means, raw byte sequences will be dumped to
terminal).
I though it could be affected by the fact I'm changing LANG on the fly, but
starting bash in a console that initially have correct LANG= variable doesn't
change observed results.


--
WBR,
Andrey Repin (anrdaemon AT yandex DOT ru) 14.02.2014, <01:50>

Sorry for my terrible english...


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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