Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
Qt Creator 2.6.0
-
None
-
Windows 7 x64
-
5981b1e5
Description
Fail when reading "environment file" which has Russian symbols. Write following error: "Failed to read env file".
I think problem here:
process_stub_win.c
if (*argv[ArgEnv]) { FILE *envFd; long size; if (!(envFd = _wfopen(argv[ArgEnv], L"r"))) { fprintf(stderr, "Cannot read creator env file %S: %s\n", argv[ArgEnv], strerror(errno)); doExit(1); } fseek(envFd, 0, SEEK_END); size = ftell(envFd); rewind(envFd); env = malloc(size); if (fread(env, 1, size, envFd) != size) { perror("Failed to read env file"); doExit(1); } fclose(envFd); }
Fix: add binary flag when open "env file"
wfopen(argv[ArgEnv], L"rb")