-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove FindFirstFile, FindNextFile and FindClose from PAL #110797
Conversation
Also remove the related tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
cc @jakobbotsch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<3
Not really, still one more test using them. |
corehost has pal abstraction for the searching functionality, but not shared with other components yet. |
unsigned int codePage = CP_UTF8; | ||
int sizeNeeded = MultiByteToWideChar(codePage, 0, str, -1, NULL, 0); | ||
WCHAR* encodedStr = new WCHAR[sizeNeeded]; | ||
MultiByteToWideChar(codePage, 0, str, -1, encodedStr, sizeNeeded); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As follow-up, could we convert these two methods (ConvertMultiByteToWideChar and ConvertWideCharToMultiByte) to use the minipal as they're both UTF8-only? It would allow us to further reduce the usage of the CoreCLR PAL within superpmi.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense
This change removes these functions from PAL. It also removes all the related PAL tests.
The superpmi was the last user of those functions, so I've modified it to use Unix APIs directly when building for Unix.