From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jordi Ferrer Plana Subject: Problems Date: Wed, 26 Feb 2003 12:55:09 +0100 Sender: linux-msdos-owner@vger.kernel.org Message-ID: <20030226115509.GA26909@llamatron.homelinux.net> Mime-Version: 1.0 Return-path: Content-Disposition: inline List-Id: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-msdos@vger.kernel.org Hi, I email you becouse I have an extrange problem with dosemu and I don't know where I can report that: I have a problem with Watcom C/C++ 11.0 compiler. The following standard code: #include #include int main ( int ArgC, char **ArgV ) { if ( ArgC != 2 ) printf ( "\nUsage: $main env_var_name\n\n" ); else { char *Var; if ( ( Var = getenv ( ArgV[1] ) ) != NULL ) printf ( "'%s' = '%s'\n", ArgV[1], Var ); else printf ( "'%s' = ''\n", ArgV[1] ); } return 0; } Don't get enviroment variables: C:\TMP>main PATH DOS/4GW Protected Mode Run-time Version 1.97 Copyright (c) Rational Systems, Inc. 1990-1994 'PATH' = '' If I compile the same code with Turbo C/C++ 1.0 it works fine: C:\TMP>main PATH 'PATH' = 'C:\PROGS\COMP\WATCOM\BINW;C:\PROGS\COMP\CLIPPER;C:\PROGS\COMP\TP7;C:\U TILS;C:\BAT;c:\bin;c:\gnu;c:\dosemu' I don't know if it's a bug or if I'm doing something grong. I notice that environment variables are case sensitive under dosemu but that's not my problem. --------------------------------------------------------------------------- Jordi Ferrer Plana Computer Vision and Robotics Group University of Girona (SPAIN) Dept. of Electronics, Informatics and Automation Tel. +34 972 418 881 - Fax. +34 972 418 259 web: http://eia.udg.es/~jferrerp - E-mail: jferrerp@eia.udg.es http://llamatron.homelinux.net netfox@llamatron.homelinux.net "C makes it easy to shoot yourself in the foot. C++ makes it harder, but when you do, it blows away your whole leg." Bjarne Stroustrup.