os: fix popen on Windows

pull/1257/head
Alexander Medvednikov 2019-07-21 13:37:27 +02:00 committed by GitHub
parent 3e005074a3
commit a6e4720a4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -304,7 +304,7 @@ pub fn system(cmd string) int {
fn popen(path string) *FILE {
$if windows {
mode := string('rb')
mode := 'rb'
wpath := path.to_wide()
return C._wpopen(wpath, mode.to_wide())
}