bugDotGNU Portable.NET - Bugs: bug #15802, All environment variable names in...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #15802: All environment variable names in started process are lower case

Submitter:  None
Submitted:  Sun 19 Feb 2006 02:15:13 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed

Sun 19 Feb 2006 03:02:48 PM UTC, comment #1: 

fixed in cvs

Klaus Treichel <ktreichel>
Group administrator
Sun 19 Feb 2006 02:15:13 PM UTC, original submission:  

This test case shows, that all environment variables are lower case in process started by System.Diagnostics.Process.Start(). It happens only in case when Process.StartInfo.EnvironmentVariables is modified.

Problem is, that Process.StartInfo.EnvironmentVariables is StringDictionary and all keys in this collection are casted to lower case before they are added. On windows it is not problem, since windows are case insensitive to environment variable names, but Linux is not. It is quite serious design flaw of .NET that it uses StringDictionary for EnvironmentVariables.

I have attached test case and patch.

The patch casts all environment variable names specified in ProcessStartInfo.EnvironmentVariables to upper case. It is probably the best workaround, since all environment variables are by convention upper case.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #1900:  Process_EnvVars.tar.gz added by None (2KiB - application/x-tgz - Test case and patch to fix the problem)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

Follow 3 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2006-02-19 ktreichel StatusNone Fixed
    Open/ClosedOpen Closed
2006-02-19 None Attached File- Added Process_EnvVars.tar.gz, #3419

Back to the top

Powered by Savane 3.13-4b48.
Corresponding source code