Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.9.3, 5.10.0
-
44da5b863597e761df3545dc7ff02a9b53bbb13d
Description
Moc fails when using Unicode e.g. Japanese output filenames.
Issue can be reproduced at least with qbs which is always using absolute paths. With qmake it is usually hidden due to the use of relative paths.
Steps to reproduce the issue
1. Build attached test project
Expected outcome:
It will build fine with Japanese build directories.
Actual outcome:
Build fails
Build log:
=== 16:48:00: Running steps for project sample... moc test_obj.h C:/Qt/5.9.3/msvc2015_64/bin/moc.exe -D_WIN32 "-D_MSC_VER=1900" -DUNICODE -D_UNICODE -DWIN32 -DQT_CORE_LIB -IC:/Qt/5.9.3/msvc2015_64/include -IC:/Qt/5.9.3/msvc2015_64/include/QtCore -IC:/Qt/5.9.3/msvc2015_64/mkspecs/win32-msvc -IC:/Users/user/Desktop/QA/sample/Qt/build-sample-Desktop_Qt_5_9_3_MSVC2015_64bit-デバッグ/qtc_Desktop__962d0cb6-debug/sample.qtc-Desktop--962d0cb6.f2b248da/qt.headers -IC:/Qt/5.9.3/msvc2015_64/include -IC:/Qt/5.9.3/msvc2015_64/include/QtCore -IC:/Qt/5.9.3/msvc2015_64/mkspecs/win32-msvc -IC:/Users/user/Desktop/QA/sample/Qt/build-sample-Desktop_Qt_5_9_3_MSVC2015_64bit-デバッグ/qtc_Desktop__962d0cb6-debug/sample.qtc-Desktop--962d0cb6.f2b248da/qt.headers -o C:/Users/user/Desktop/QA/sample/Qt/build-sample-Desktop_Qt_5_9_3_MSVC2015_64bit-デバッグ/qtc_Desktop__962d0cb6-debug/sample.qtc-Desktop--962d0cb6.f2b248da/qt.headers/moc_test_obj.cpp C:/Users/user/Desktop/QA/sample/Qt/qbs_sample1/test_obj.h moc: Cannot create C:/Users/user/Desktop/QA/sample/Qt/build-sample-Desktop_Qt_5_9_3_MSVC2015_64bit-????/qtc_Desktop__962d0cb6-debug/sample.qtc-Desktop--962d0cb6.f2b248da/qt.headers/moc_test_obj.cpp Process failed with exit code 1. The following products could not be built for configuration qtc_Desktop__962d0cb6-debug: sample Error while building/deploying project sample (kit: Desktop Qt 5.9.3 MSVC2015 64bit) When executing step "Qbs Build" 16:48:00: Elapsed time: 00:00. ===