1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

os: fix popen on Windows

This commit is contained in:
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

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())
}