Skip to content

Commit dcbe26d

Browse files
SiegeLordExSiegeLord
authored andcommitted
Escape data paths on Windows.
Fixes #98
1 parent 041325b commit dcbe26d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

gnuplot/src/axes_common.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1466,11 +1466,12 @@ impl AxesCommonData
14661466
}
14671467
let source = if let Some(data_directory) = data_directory
14681468
{
1469-
path::Path::new(data_directory)
1470-
.join(format!("{i}.bin"))
1471-
.to_str()
1472-
.unwrap()
1473-
.to_string()
1469+
escape(
1470+
path::Path::new(data_directory)
1471+
.join(format!("{i}.bin"))
1472+
.to_str()
1473+
.unwrap(),
1474+
)
14741475
}
14751476
else
14761477
{

0 commit comments

Comments
 (0)