* fork.cc (frok::parent): Always set CREATE_UNICODE_ENVIRONMENT flag.
Explain why.
This commit is contained in:
		| @@ -1,3 +1,8 @@ | ||||
| 2013-05-24  Corinna Vinschen  <corinna@vinschen.de> | ||||
|  | ||||
| 	* fork.cc (frok::parent): Always set CREATE_UNICODE_ENVIRONMENT flag. | ||||
| 	Explain why. | ||||
|  | ||||
| 2013-05-23  Corinna Vinschen  <corinna@vinschen.de> | ||||
|  | ||||
| 	* fork.cc (frok::parent): Call CreateProcessW with command line set | ||||
|   | ||||
| @@ -262,6 +262,11 @@ frok::parent (volatile char * volatile stack_here) | ||||
|  | ||||
|   int c_flags = GetPriorityClass (GetCurrentProcess ()); | ||||
|   debug_printf ("priority class %d", c_flags); | ||||
|   /* Per MSDN, this must be specified even if lpEnvironment is set to NULL, | ||||
|      otherwise UNICODE characters in the parent environment are not copied | ||||
|      correctly to the child.  Omitting it may scramble %PATH% on non-English | ||||
|      systems. */ | ||||
|   c_flags |= CREATE_UNICODE_ENVIRONMENT; | ||||
|  | ||||
|   errmsg = NULL; | ||||
|   hchild = NULL; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user