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
Describe the bug
When I try to use gettext in a UWP application, the application failed to start.
Environment
OS: Windows 10 20H2
Compiler: VS 2019
To Reproduce
Steps to reproduce the behavior:
./vcpkg install gettext:x64-uwp
Create a new project, UWP app, C++/CX
#include <intl.h> and use gettext somewhere in code
Build and run
Expected behavior
Should run without any issue.
Failure logs
The target process aborted before activation completed.
The program '[1064] GettextTest.exe' has exited with code -1073741502 (0xc0000142) 'DLL Initialization Failed'.
Additional context
intl-8.dll iconv-2.dll ucrtbased.dll are present in the .exe folder.
The text was updated successfully, but these errors were encountered:
I could see that in libiconv, it used GetModuleFileName to get the path and then used strchr to find the path separator.
GetModuleFileName mapped to GetModuleFileNameW but strchr is ANSI, which caused the failure in DLL initialization
Describe the bug
When I try to use gettext in a UWP application, the application failed to start.
Environment
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Should run without any issue.
Failure logs
The target process aborted before activation completed.
The program '[1064] GettextTest.exe' has exited with code -1073741502 (0xc0000142) 'DLL Initialization Failed'.
Additional context
intl-8.dll iconv-2.dll ucrtbased.dll are present in the .exe folder.
The text was updated successfully, but these errors were encountered: