Skip to content

Commit

Permalink
Escape data paths on Windows.
Browse files Browse the repository at this point in the history
Fixes #98
  • Loading branch information
SiegeLordEx authored and SiegeLord committed Mar 22, 2024
1 parent 041325b commit dcbe26d
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions gnuplot/src/axes_common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1466,11 +1466,12 @@ impl AxesCommonData
}
let source = if let Some(data_directory) = data_directory
{
path::Path::new(data_directory)
.join(format!("{i}.bin"))
.to_str()
.unwrap()
.to_string()
escape(
path::Path::new(data_directory)
.join(format!("{i}.bin"))
.to_str()
.unwrap(),
)
}
else
{
Expand Down

0 comments on commit dcbe26d

Please sign in to comment.