Closed LeadRDRK closed 5 months ago
It seems to be a similar case to issue #382. The default build options disable ICU, which is necessary for handling multibyte characters, thus preventing proper processing of multibyte characters.
Please proceed with the following steps to rebuild.
cd /path/to/nanoem/repository
git clone https://github.com/unicode-org/icu/ dependencies/icu
# checkout proper version of ICU4C automatically
cmake -P scripts/build.cmake
cmake -G Ninja .. -DNANOEM_ENABLE_IMGUI_FILE_DIALOG=ON -DNANOEM_ENABLE_BUILD_ICU4C=ON
Thank you for your response.
It's more convenient to just link to the system's libraries on Linux, so I ran CMake with these options to build it:
cmake -G Ninja .. -DNANOEM_ENABLE_IMGUI_FILE_DIALOG=ON -DNANOEM_ENABLE_ICU=ON -DICU4C_INCLUDE_DIR=/usr/include/unicode -DICU4C_I18N_LIBRARY_RELEASE=/usr/lib/libicui18n.so -DICU4C_UC_LIBRARY_RELEASE=/usr/lib/libicuuc.so -DICU4C_DATA_LIBRARY_RELEASE=/usr/lib/libicudata.so
The problem is fixed with these options enabled.
Describe the bug Dependency files with UTF-8 characters in their name cannot be loaded on Linux.
To Reproduce Steps to reproduce the behavior:
Same thing happens when using drag and drop. Error seems to occur when the program tries to load the dependencies of a project/model/etc.
Expected behavior The file should load normally and the file name should not be garbled.
Screenshots When trying to open a project:![image](https://github.com/hkrn/nanoem/assets/25358041/5a8f456e-53ba-4f52-9d07-3805a53acf50)
When loading a model:![image](https://github.com/hkrn/nanoem/assets/25358041/2c49703a-bc54-4616-af7c-9d95302917ef)
Desktop:
Additional context Built with the following CMake invocation:
Without enabling
NANOEM_ENABLE_IMGUI_FILE_DIALOG
, trying to open anything that needs to select a file does nothing.