Skip to content
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

Wrong libucrt.lib is installed #144

Open
momo5502 opened this issue Oct 17, 2024 · 1 comment
Open

Wrong libucrt.lib is installed #144

momo5502 opened this issue Oct 17, 2024 · 1 comment

Comments

@momo5502
Copy link

momo5502 commented Oct 17, 2024

Hey, I'm encountering the following error.

Compiling/executing the following C/C++ line using a regular SDK (and static runtime using /MT) on my windows machine yields a non-null pointer as a result:
setlocale(LC_ALL, ".UTF-8")

When ompiling/executing that line using the xwin SDK, it fails and returns a nullptr.

I'm using the following commandline to setup the SDK:

xwin --accept-license --include-atl --arch x86 --sdk-version 10.0.22621 splat --include-debug-libs --output /xwin

Looking at the libucrt.lib that got downloaded, I can see it has about 60mb.

I have installed the exact same Windows SDK on my native Windows machine and the libucrt.lib seems to be around 38mb.

I think the one that gets installed through xwin is outdated. As UTF-8 support got introduced with SDK 10.0.17134, the version that gets installed through xwin must be before that one. Even though I specified 10.0.22621. Specifying no SDK version at all also installs the wrong lib.

Manually exchanging it through the lib from my windows machine causes the setlocale test to work. So I assume xwin either downloads an outdated lib or an entirely outdated SDK.

@Jake-Shadle
Copy link
Owner

Well that's weird. I'll look at it over the weekend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants