You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Platform: Windows 10 (Chinese Language)
Console charsets: GBK
UV: 0.5.11
Details
I tried to build a .pyd file using scikit-build-core on Windows (msvc backend), when i use uv build, the output of msvc cannot print abnormal in prowershell console (like this ����ɴ��������), while i directly using python -m build will not.
This may be caused by uv build not handling non-UTF-8 charsets well. Can anyone fix it?
Console output
-- Build files have been written to: C:/Users/User/AppData/Local/Temp/tmpz_8ybcie/build
*** Building project with Visual Studio 16 2019...
���� .NET Framework �� Microsoft (R) ��������汾 16.11.2+f32259642
��Ȩ����(C) Microsoft Corporation����������Ȩ����
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(517,5): warning MSB8029: �м�Ŀ¼�����Ŀ¼��פ������ʱĿ¼�£���Ϊ����ܻᵼ���������ɳ������⡣ [C:\Users\User\AppData\Local\Temp\tmpz_8ybcie\build\ZERO_CHECK.vcxproj]
1>Checking Build System
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(517,5): warning MSB8029: �м�Ŀ¼�����Ŀ¼��פ������ʱĿ¼�£���Ϊ����ܻᵼ���������ɳ������⡣ [C:\Users\User\AppData\Local\Temp\tmpz_8ybcie\build\_core.vcxproj]
Building Custom Rule D:/.uv/cache/sdists-v6/.tmpJfNZWj/scikit_build_example-0.0.1/CMakeLists.txt
main.cpp
���ڴ����� C:/Users/User/AppData/Local/Temp/tmpz_8ybcie/build/Release/_core.lib �Ͷ��� C:/Users/User/AppData/Local/Temp/tmpz_8ybcie/build/Release/_core.exp
_core.vcxproj -> C:\Users\User\AppData\Local\Temp\tmpz_8ybcie\build\Release\_core.cp312-win_amd64.pyd
It works fine when using the uv command on WSL (Ubuntu on Windows) with the same environment. It seems that the issue is related to character encoding handling on Windows 10 with the GBK charset, which is causing problems with non-UTF-8 characters in the output.
Running the uv build command under WSL avoids this issue, as it uses a different console environment that handles the character encoding more effectively.
Environment
Platform: Windows 10 (Chinese Language)
Console charsets: GBK
UV: 0.5.11
Details
I tried to build a
.pyd
file using scikit-build-core on Windows (msvc backend), when i useuv build
, the output of msvc cannot print abnormal in prowershell console (like this����ɴ��������
), while i directly usingpython -m build
will not.This may be caused by
uv build
not handling non-UTF-8 charsets well. Can anyone fix it?Console output
Reproduce
Install Visual Stutio Build Tools
Run
uv build
The text was updated successfully, but these errors were encountered: