Fixed #22335 -- Fixed popen_wrapper error on non-English Windows systems.
Merge pull request #2481 from zsiciarz/ticket-22335

Fixed #22335 -- Fixed popen_wrapper error on non-English Windows systems.