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:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; q=dns; s= default; b=V8wv4bUQP46z6lJmtn000BGwrqgG/mIN15J6W285qPqucKBb+7D3P Jw46dfQ+0WD2ArA46M2KUyDhgSWB6RfiNhXWP7HarIPxDs4cgIwlVMyvHlZPrU1z kCItZGBQ2r8B1kqWIP4jMi23ODj6TFbHvMvr+GJhFvoKsKSiT+qc2o= 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:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; s=default; bh=3m6zzqiwXFnuz3P+lD2bRl2yBFs=; b=GhCDvTfHniMeJtMuvIId5cezAeaC KGkP6ZvYlHrATJ4wRFfSJQ6hKc7DXcjxLpaG2w6tAC63sWQ18Dtr+nxx5gv8jG7+ 5x0D9ZlmVLhcYEvrVZ1mHbLNwTfCMQSOsrBToySiagOVIoFUYzB4iljVw1/A4u/J jdm++pumG55RFz4= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=-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 Date: Wed, 30 Nov 2016 12:03:15 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: Retrieving per-process environment block? Message-ID: <20161130110315.GG14074@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20161117140012 DOT GA23664 AT calimero DOT vinschen DOT de> <98eb08bf-5012-fe14-b10c-241b427c4366 AT cs DOT umass DOT edu> <2925977 DOT 20161129192741 AT yandex DOT ru> <583E1D4A DOT 4020703 AT gmx DOT de> <111bc961-5f69-8e27-f78a-2b82f351d811 AT cs DOT umass DOT edu> <237e4e33-4b51-a124-4108-d67e715dcbf0 AT lysator DOT liu DOT se> <20161130104813 DOT GF14074 AT calimero DOT vinschen DOT 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) --DEueqSqTbz/jWVG1 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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" -----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--