Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tools/pylauncher/pylauncher.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,9 @@ void launcher_main() {

const wchar_t* application_name = get_python_executable();
wchar_t* script_path_w = get_script_path();
size_t command_line_len = wcslen(ccache_prefix) + wcslen(application_name) + wcslen(script_path_w) + 9;
size_t command_line_len = wcslen(ccache_prefix) + wcslen(application_name) + wcslen(script_path_w) + 17;
wchar_t* command_line = malloc(sizeof(wchar_t) * command_line_len);
swprintf(command_line, command_line_len, L"%ls\"%ls\" -E \"%ls\"", ccache_prefix, application_name, script_path_w);
swprintf(command_line, command_line_len, L"%ls\"%ls\" -E -X utf8 \"%ls\"", ccache_prefix, application_name, script_path_w);
free(script_path_w);

// -E will not ignore _PYTHON_SYSCONFIGDATA_NAME an internal
Expand Down
Loading