From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 95454 invoked by alias); 30 Nov 2016 11:03:22 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 95394 invoked by uid 89); 30 Nov 2016 11:03:21 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-101.6 required=5.0 tests=BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1294, 20161130, H*MI:sk:2016113, H*F:D*cygwin.com X-HELO: drew.franken.de Received: from mail-n.franken.de (HELO drew.franken.de) (193.175.24.27) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 30 Nov 2016 11:03:18 +0000 Received: from aqua.hirmke.de (aquarius.franken.de [193.175.24.89]) (Authenticated sender: aquarius) by mail-n.franken.de (Postfix) with ESMTPSA id D548B72106C27 for ; Wed, 30 Nov 2016 12:03:15 +0100 (CET) Received: from calimero.vinschen.de (calimero.vinschen.de [192.168.129.6]) by aqua.hirmke.de (Postfix) with ESMTP id 3125D5E0264 for ; Wed, 30 Nov 2016 12:03:15 +0100 (CET) Received: by calimero.vinschen.de (Postfix, from userid 500) id 27C35A805A1; Wed, 30 Nov 2016 12:03:15 +0100 (CET) Date: Wed, 30 Nov 2016 12:36:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: Retrieving per-process environment block? Message-ID: <20161130110315.GG14074@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <20161117140012.GA23664@calimero.vinschen.de> <98eb08bf-5012-fe14-b10c-241b427c4366@cs.umass.edu> <2925977.20161129192741@yandex.ru> <583E1D4A.4020703@gmx.de> <111bc961-5f69-8e27-f78a-2b82f351d811@cs.umass.edu> <237e4e33-4b51-a124-4108-d67e715dcbf0@lysator.liu.se> <20161130104813.GF14074@calimero.vinschen.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="DEueqSqTbz/jWVG1" Content-Disposition: inline In-Reply-To: <20161130104813.GF14074@calimero.vinschen.de> User-Agent: Mutt/1.7.1 (2016-10-04) X-SW-Source: 2016-11/txt/msg00354.txt.bz2 --DEueqSqTbz/jWVG1 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1303 On Nov 30 11:48, Corinna Vinschen wrote: > On Nov 30 10:15, Peter Rosin wrote: > > On 2016-11-30 04:00, Eliot Moss wrote: > > > On 11/29/2016 7:28 PM, Herbert Stocker wrote: > > >=20 > > >> Or we simply copy the variables unconverted to the Windows environme= nt > > >> block, as the Windows env block is not used for anything else - up to > > >> now it is not updated at all. > > >=20 > > > Maybe we could stash them inside one large variable? Would that help > > > at all? (It does demand a quoting convention, but since this is all > > > internal stuff, that may not be too hard.) > >=20 > > I believe this is a dead end. The Windows environment block has an > > unacceptable size limit which is circumvented by the internal Cygwin > > handling. Since this is about exposing said Cygwin environment, it > > would simply not work for big environments. >=20 > ACK Uhm, sorry, not ACK, this is nonsense. The Windows env is not limited to 32K characters, only the CreateProcess call is, unless you use the option CREATE_UNICODE_ENVIRONMENT. In that case, you can pass bigger envs. Cygwin uses it, too, when calling native Windows processes. Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --DEueqSqTbz/jWVG1 Content-Type: application/pgp-signature; name="signature.asc" Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJYPrHyAAoJEPU2Bp2uRE+gwWQP/2f1KtE1kP4Cl6RQAetfkA3J nOV9kbhOykJxkx5AqkwzX92CV6bRKdI4TAXQA4bRd1S63DY0zuKQPBWoozvAGTbW Fur83NYRHs5W+fF2QDfnEUz5Q6j4HrM35a8EsYtw2wyX07GCZNbD+be+Gk/lMJgK bIl915iUQJaTFAkBpENCmi//1VyE68I9t6YACl7e2aubaWeN6F1bk3kqFHrzUTpz D3RCAna1d5Q++oz+l79LX87nvl+ly7p4qoTgRU1QOZlhPV4cR+K3tYUQcYSp21n3 VamuJ6v5XVnd6D+6fy095K1qhwoGAs0OQTSTwBwYgGq/gbtHPhuA/GP+0/urrfdu w5DiZ5jaEbJx0NRAZB4xza3mLM0qL7yCMi0/KHj/DtLpbyhqA3wv+nAy1ApIweFg cDQfIqiV3+gEeJXJR7FvzA6yc0arKRrxw7ZLdxgJ+aQ3Gz2UjcwB+xy+7f2AofXl IjuFUD3hwh5wxY/v93kxgqRZZzVuLbtRPAx9tcPFTrGrpxAb9XalbOiQk3NbQoCB AgXFyn9fJb6oHnrg6SrqFeaA3FwZYZJNhKXZtHTn/Ga5Y0UWiRF/yUgbbd12pJ60 hiWaOrRfms5Cjp7u3r5OCAAz9qn3cKkU9NtYAeYCDQyheHZjrXph95xZMsDC3OEN qjW+K+2PyQ+JqMduPo0a =8St7 -----END PGP SIGNATURE----- --DEueqSqTbz/jWVG1--