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

Submitted by:  None
Submitted on:  Sun 19 Feb 2006 02:15:13 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

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

fixed in cvs

Klaus Treichel <ktreichel>
Project 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

 

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

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 3 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Sun 19 Feb 2006 03:02:48 PM UTCktreichelStatusNone=>Fixed
  Open/ClosedOpen=>Closed
Sun 19 Feb 2006 02:15:13 PM UTCNoneAttached File-=>Added Process_EnvVars.tar.gz, #3419

Back to the top


Powered by Savane 3.1-cleanup1