Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=15214 This is a regression introduced in be53263. Xamarin.Android assumes that the $LANG environment variable can be used to control System.Globalization.CultureInfo.CurrentCulture, setting LANG based on the current Java locale. This was broken in be53263 because $LANG was no longer being checked to determine the default locale, as $LC_ALL was not set. Fix the fallback logic so that $LANG is checked when $LC_ALL is not.
…ocessing bridge objects. Fixes #13858" This reverts commit 7d6daf7. The fix for #13858 introduced Bug #14999: https://bugzilla.xamarin.com/show_bug.cgi?id=14999 It basically replaces a consistent GC-related crash with an entirely random GC crash (fun!), stalling QA. Revert the #13858 fix so that QA can continue, testing the Microsoft Remediation Patches.
… bridge objects. Fixes #13858 We depend on the latent liveness state of objects at the time we collect bridged objects. To preserve this we must perform the dfs1 step right after collecting them and before we drain the gray stack or all objects pointed by candidate bridge objects will be marked as alive.
…r period. Also match .NET 2.0 behaviour wrt calls to protected Sample. Add unit tests (and removed the commented ones). Ref: http://www0.cs.ucl.ac.uk/staff/d.jones/GoodPracticeRNG.pdf
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=13686 Android v4.3 changed the timezone DB format described in 8a26398 and replaced it with a single file containing version, index, data, and a "zoneTab" (which is parsed but unused). Port/rewrite the Java libcore.util.ZoneInfoDB type into System.AndroidTzData so that this new file format is supported. (Another day, another file format...)
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=13343 There are some Industrial Automation Hardware devices which return a '\'-prefixed path to the FTP PWD command, which would break: System.UriFormatException: Invalid URI: The hostname could not be parsed. at System.Uri.Parse (UriKind kind, System.String uriString) at System.Uri.ParseUri (UriKind kind) at System.Uri..ctor (System.String uriString, Boolean dontEscape) at System.Uri..ctor (System.String uriString) [0x0000 at System.Net.FtpWebRequest.GetRemoteFolderPath (System.Uri uri) at System.Net.FtpWebRequest.CWDAndSetFileName (System.Uri uri) at System.Net.FtpWebRequest.ProcessMethod () at System.Net.FtpWebRequest.ProcessRequest () There was an error connecting to the FTP Server. The problem was this statement: Uri initial = new Uri ("ftp://dummy-host" + initial_path); Since the FTP server was returning "\" to the PWD command, `initial_path` was "\", and the above was equivalent to: Uri initial = new Uri (@"ftp://dummy-host\"); This results in the UriFormatException. The solution is to not assume that `initial_path` will start with '/', and instead use UriBuilder.
This code can't depend on mono/utils and doesn't need the 'fixed' implementation of bsearch () anyway since keys are never null.
…g::EndsWith. Fixes #13509
…nullable enum type. Fixes #13454
…. Fixes #13497