[Mono-bugs] [Bug 599476] Environment.GetFolderPath() behaviour inconsistent with .NET

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Mar 4 08:27:19 EST 2011


https://bugzilla.novell.com/show_bug.cgi?id=599476

https://bugzilla.novell.com/show_bug.cgi?id=599476#c1


expe bition <expebition at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |expebition at gmail.com

--- Comment #1 from expe bition <expebition at gmail.com> 2011-03-04 13:27:18 UTC ---
I second the above.  SpecialFolder.Personal is especially problematic as there
is no other good locale-neutral way to retrieve the user's Documents folder
path.

Bug 537947 (resolved) addresses this issue for MonoTouch.

Bug 597907 (not resolved) addresses this issue for OS X.

In my view, the fix for SpecialFolder.Personal should be in
mcs/class/corlib/System/Environment.cs to change from this:


            // personal == ~
            case SpecialFolder.Personal:
#if MONOTOUCH
                return Path.Combine (home, "Documents");
#else
                return home;
#endif


to this:


            case SpecialFolder.Personal:
#if MONOTOUCH
                return Path.Combine (home, "Documents");
#else
                return ReadXdgUserDir (config, home, "XDG_DOCUMENTS_DIR",
"Documents");
#endif

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list