https://bugs.winehq.org/show_bug.cgi?id=53832
Bug ID: 53832 Summary: wbemprox: where-clause seems to be case-sensitive Product: Wine Version: 7.19 Hardware: x86-64 URL: https://github.com/PowerShell/PowerShell/releases/down load/v7.0.3/PowerShell-7.0.3-win-x64.msi OS: Linux Status: NEW Keywords: dotnet, download Severity: normal Priority: P2 Component: wmi&wbemprox Assignee: wine-bugs@winehq.org Reporter: xerox.xerox2000x@gmail.com Distribution: Debian
Created attachment 73364 --> https://bugs.winehq.org/attachment.cgi?id=73364 script to reproduce the problem
prerequisite: winetricks dotnet48
The attached script shows the problem: on windows one can either use 'c:' or 'C:' in the following query:
$searcher = [wmisearcher]'Select freespace From win32_logicaldisk where deviceid="c:"'
$searcher.scope.path = "\.\root\cimv2"
$searcher.get()
On wine only the upper-case 'C:' yields any results.
Steps to reproduce: download attached script and do 'wine pwsh -f aaa.ps1'
Results on wine:
Lower case c: gives: Upper case c: gives:
__GENUS : 2 __CLASS : Win32_LogicalDisk __RELPATH : __PROPERTY_COUNT : 1 __DERIVATION : {} __SERVER : __NAMESPACE : __PATH : FreeSpace : 5817585664 PSComputerName :
Results on windows: Z:> .\aaa.ps1 Lower case c: gives:
__GENUS : 2 __CLASS : Win32_LogicalDisk __SUPERCLASS : __DYNASTY : __RELPATH : __PROPERTY_COUNT : 1 __DERIVATION : {} __SERVER : __NAMESPACE : __PATH : FreeSpace : 23573446656 PSComputerName :
Upper case c: gives: __GENUS : 2 __CLASS : Win32_LogicalDisk __SUPERCLASS : __DYNASTY : __RELPATH : __PROPERTY_COUNT : 1 __DERIVATION : {} __SERVER : __NAMESPACE : __PATH : FreeSpace : 23573446656 PSComputerName :