This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Bug: run emacs: fatal error reading the windows environment


>    From: Kirk Hilliard <kirk at ghoti dot com>
>    Date: 03 Mar 2006 15:51:21 -0500

> On Mar  3 21:33, Corinna Vinschen wrote:
>> Is that a native Windows emacs?  A Cygwin emacs shouldn't have any
>> problem.
>
> No, it is the cygwin emacs.
>
>``run emacs'' fails with
>  12 [main] emacs 900 C:\cygwin\bin\emacs.exe: *** fatal error -
>  internal error reading the windows environment --
>  too many environment variables?
> but when run as ``emacs'' from an xterm it works fine.  What I first
> noticed is that it fails silently when launched from a shortcut that
> calls ``run emacs'', so I tried that from the xterm to see what was
> going on.
>
> I will be surprised if I turn out to be the only one this affects, as
> it occurs on two separate machines, one upgraded, the other
> re-installed fresh.  (Perhaps not so many people launch emacs from a
> shortcut.)
>
> Kirk

I also see the problem.  Emacs fails as described - it would appear
that there is a bug in the routine which converts the Windows
environment to the Cygwin environment.

As a temporary workaround, I changed the icon command to the following:

D:\cygwin\bin\run.exe -p /usr/bin:/usr/X11R6/bin bash -c 'emacs
-display 127.0.0.1:0.0'

This works OK.  It would appear that emacs is happy if it is started
by a Cygwin process - presumably it doesn't need to read the Windows
environment in this case but simply
inherits the Cygwin environment from its parent process.

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]