https://bugs.winehq.org/show_bug.cgi?id=41911
--- Comment #11 from Anastasius Focht focht@gmx.net --- Hello folks,
I've refined the summary to collect more apps.
Steps to reproduce with PowerShell 6.x:
Download: https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.5/Pow...
--- snip --- $ winetricks -q dotnet40 $ winetricks win7 # if not default upon creation $ wine msiexec -i PowerShell-6.0.0-beta.5-win7-x86.msi --- snip ---
Run:
--- snip --- $ pwd /home/focht/.wine/drive_c/Program Files/PowerShell/6.0.0-beta.5
$ wine ./powershell.exe ... fixme:msvcrt:_configure_wide_argv (1) stub fixme:msvcrt:_initialize_wide_environment stub ... fixme:process:GetNumaHighestNodeNumber (0x3beffc): semi-stub fixme:thread:SetThreadStackGuarantee (0x3beff8): stub fixme:ntdll:EtwEventRegister ({e13c0d23-ccbc-4e12-931b-d9cc2eee27e4}, 0x794e20, 0x97bb90, 0x984fe8) stub. fixme:ntdll:EtwEventRegister ({763fd754-7086-4dfe-95eb-c01a46faf4ca}, 0x794e20, 0x97bb20, 0x984fd8) stub. fixme:ntdll:EtwEventRegister ({a669021c-c450-4609-a035-5af59af4df18}, 0x794e20, 0x97bb58, 0x984fe0) stub. fixme:wer:WerRegisterRuntimeExceptionModule (L"C:\Program Files\PowerShell\6.0.0-beta.5\mscordaccore.dll", 0x5a0000) stub! fixme:process:FlushProcessWriteBuffers : stub ... fixme:ntdll:EtwEventRegister ({a0c1853b-5c40-4b15-8766-3cf1c58f985a}, 0x3e3536, (nil), 0xf214b4) stub.
Unhandled Exception: fixme:module:load_library unsupported flag(s) used (flags: 0x00000800) fixme:module:load_library unsupported flag(s) used (flags: 0x00000800) System.TypeInitializationException: The type initializer for 'System.Management.Automation.Utils' threw an exception. ---> System.EntryPointNotFoundException: Unable to find an entry point named 'FindNLSStringEx' in DLL 'kernel32.dll'. at Interop.Kernel32.FindNLSStringEx(Char* lpLocaleName, UInt32 dwFindNLSStringFlags, Char* lpStringSource, Int32 cchSource, Char* lpStringValue, Int32 cchValue, Int32* pcchFound, Void* lpVersionInformation, Void* lpReserved, IntPtr sortHandle) at System.Globalization.CompareInfo.FindString(UInt32 dwFindNLSStringFlags, String lpStringSource, Int32 startSource, Int32 cchSource, String lpStringValue, Int32 startValue, Int32 cchValue, Int32* pcchFound) at System.Globalization.CompareInfo.IndexOfCore(String source, String target, Int32 startIndex, Int32 count, CompareOptions options, Int32* matchLengthPtr) at System.Globalization.CompareInfo.IndexOf(String source, String value, Int32 startIndex, Int32 count, CompareOptions options) at System.String.IndexOf(String value, Int32 startIndex, Int32 count, StringComparison comparisonType) at System.String.IndexOf(String value, StringComparison comparisonType) at Microsoft.Win32.RegistryKey.ValidateKeyName(String name) at Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable) at Microsoft.Win32.RegistryKey.OpenSubKey(String name) at System.Management.Automation.Platform.get_IsNanoServer() at System.Management.Automation.Platform.get_IsInbox() at System.Management.Automation.Utils..cctor() --- End of inner exception stack trace --- at System.Management.Automation.PSSnapInReader.ReadRegistryInfo(Version& assemblyVersion, String& publicKeyToken, String& culture, String& architecture, String& applicationBase, Version& psVersion) at System.Management.Automation.PSSnapInReader.ReadCoreEngineSnapIn() at System.Management.Automation.Runspaces.InitialSessionState.ImportCorePSSnapIn() at System.Management.Automation.Runspaces.InitialSessionState.CreateDefault2() at Microsoft.PowerShell.UnmanagedPSEntry.Start(String consoleFilePath, String[] args, Int32 argc) at Microsoft.PowerShell.ManagedPSEntry.Main(String[] args) in C:\powershell\src\powershell\Program.cs:line 23 wine: Unhandled exception 0xe0434352 in thread 9 at address 0x7bc50023:0x7b446223 (thread 0009), starting debugger... --- snip ---
So anything that uses .NET 4+ System.Globalization.CompareInfo class will encounter this problem.
$ wine --version wine-2.15
Regards