Add Marshal ansi conversion to shared partition (dotnet/coreclr#22243)
authorMarek Safar <marek.safar@gmail.com>
Tue, 29 Jan 2019 01:16:16 +0000 (02:16 +0100)
committerJan Kotas <jkotas@microsoft.com>
Tue, 29 Jan 2019 01:16:16 +0000 (17:16 -0800)
commit0994a1c6b87f50dcec538e900af20bee99f15ab5
tree4f10b0efe032f2f34118b8195916f2e97c7f23dd
parent1c169332f8572acb56f60505a5fe5acdcd7c479a
Add Marshal ansi conversion to shared partition (dotnet/coreclr#22243)

* Add Marshal ansi conversion to shared partition

* Ignore bestFit/throwOnUnmappableChar on Unix

* Use same assert in StringToAnsiString

* wideCharLen parameter rename

Commit migrated from https://github.com/dotnet/coreclr/commit/930abba4060fb528db2bb9835a1bc5a6e684bfec
src/coreclr/src/System.Private.CoreLib/src/Microsoft/Win32/Win32Native.cs
src/coreclr/src/System.Private.CoreLib/src/System/Runtime/InteropServices/Marshal.CoreCLR.cs
src/coreclr/src/System.Private.CoreLib/src/System/String.CoreCLR.cs
src/coreclr/src/System.Private.CoreLib/src/System/StubHelpers.cs
src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/Marshal.Unix.cs
src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/Marshal.Windows.cs