Fix DllImport of IdnToAscii & IdnToUnicode (dotnet/coreclr#8666)
authorJohn Chen <jochen@microsoft.com>
Mon, 19 Dec 2016 19:17:25 +0000 (11:17 -0800)
committerTarek Mahmoud Sayed <tarekms@microsoft.com>
Mon, 19 Dec 2016 19:17:25 +0000 (11:17 -0800)
commit94efcbcbf659fc505c00dd1e7005a59efb07a33e
tree19af23ac98f494ace8fba50ad9def8c531a46082
parent58feea100071d286e1dba3d4d11fb5dd56ec4aa8
Fix DllImport of IdnToAscii & IdnToUnicode (dotnet/coreclr#8666)

Fix an issue found in OneCoreUAP testing. According to MSDN,
the official exporting DLL for IdnToAccii and IdnToUnicode
is normaliz.dll, not kernel32.dll. While most Windows SKUs
export these functions from both normaliz.dll and kernel32.dll,
recent tests revealed that some Windows SKUs export them from
normaliz.dll only.

Commit migrated from https://github.com/dotnet/coreclr/commit/dec5a1ff4088780bf0b8226002a5a51d7d6c4d3a
src/coreclr/src/mscorlib/src/System/Globalization/IdnMapping.cs