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

View File

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