delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/05/25/06:02:05

Message-Id: <4.1.19990525113803.00a6e7a0@hal.nt.tuwien.ac.at>
X-Sender: tony AT hal DOT nt DOT tuwien DOT ac DOT at
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1
Date: Tue, 25 May 1999 12:01:21 +0200
To: djgpp AT delorie DOT com
From: Anton Helm <tony AT nt DOT tuwien DOT ac DOT at>
Subject: Environment variables and getenv()
Mime-Version: 1.0
Reply-To: djgpp AT delorie DOT com

I'm currently "remote debugging" a problem that occurs on 
2 PCs several thousend kilometers from here. It isn't 
reproducable on my own PCs.

I've already found a workaround but I'm still worried.

Calling getenv() function to read the PATH returns NULL
but I've been told that PATH exists and has valid entries.

The PCs are running W98 (most likely a french version, but I 
haven't yet found out definetly) and the "PATH" is spelled "Path"
when you look at the environment with "set". Changing it to "PATH"
seems to make it work correctly.

My WinNT4.0 also uses "Path" but returns it's contents correctly when
I call getenv("PATH").

AFAIK DOS et. al. stores environmemt variables in the way they are typed in, but 
interpretes them caseINsensitive.

Is there any known incompatibility with french versions of W95(98)?

The libc reference doesn't mention casesensitiveness and ANSI
doesn't deal with it at all (because on other OS environment variables
are case sensitive).


There is still the possibility that the problem is found elsewhere because
I have to rely on the information of some users (not necessarily experts)
but currently it looks the way I've described above. 

Comments ?

Tony





**************************************************************
Dipl.-Ing. Anton HELM   *T*  mailto:tony AT nt DOT tuwien DOT ac DOT at
Institut fuer           *U*  http://www.nt.tuwien.ac.at/~tony/
Nachrichtentechnik und  *W*  http://www.nt.tuwien.ac.at/
Hochfrequenztechnik     *I*  talkto:tony AT eagle DOT nt DOT tuwien DOT ac DOT at
Guszhausstr. 25/389     *E*  phoneto:+43-1-58801-38920
A-1040 Wien, AUSTRIA    *N*  faxto:+43-1-58801-38999
**************************************************************
finger -l tony AT penguin DOT nt DOT tuwien DOT ac DOT at      for PGP public key
**************************************************************

- Raw text -


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