dotgnu-pnet
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pnet-developers] [bug #15802] All environment variable names in started


From: anonymous
Subject: [Pnet-developers] [bug #15802] All environment variable names in started process are lower case
Date: Sun, 19 Feb 2006 14:15:14 +0000
User-agent: Mozilla/5.0 (compatible; Konqueror/3.4; Linux) KHTML/3.4.1 (like Gecko)

URL:
  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=15802>

                 Summary: All environment variable names in started process
are lower case
                 Project: DotGNU Portable.NET
            Submitted by: None
            Submitted on: Sun 02/19/06 at 14:15
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open

    _______________________________________________________

Details:

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.





    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sun 02/19/06 at 14:15  Name: Process_EnvVars.tar.gz  Size: 2.08KB   By:
None
Test case and patch to fix the problem
<http://savannah.gnu.org/bugs/download.php?item_id=15802&item_file_id=3419>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=15802>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]