Closed levinli303 closed 3 years ago
Confirmed. But maybe the upstream doesn't supoort uwp.
I tried to use libiconv only and it led to the same error.
@JackBoosY I tested with the commit before #11776 is merged and it was working.
@JackBoosY
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:
include and use gettext somewhere in code
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.