Use UTF8 instead of ASCII when reading mount info
authorGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Fri, 3 Sep 2010 21:26:16 +0000 (17:26 -0400)
committerGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Fri, 3 Sep 2010 21:27:08 +0000 (17:27 -0400)
This allows for mount points with UTF8 characters in them.

mcs/class/corlib/System.IO/DriveInfo.cs

index acdad4b31a56c683beb48a596218a43961e87e50..5efe84a48d6408c8180fbee0c98ec2c55e85d052 100644 (file)
@@ -155,7 +155,7 @@ namespace System.IO {
                static StreamReader TryOpen (string name)
                {
                        if (File.Exists (name))
-                               return new StreamReader (name, Encoding.ASCII);
+                               return new StreamReader (name);
                        return null;
                }