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:

committed by
GitHub

parent
3e005074a3
commit
a6e4720a4d
@ -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())
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user