You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are some functions which take file paths as Strings. These should probably be using PathBuf and OsStr. Different OS's treat paths differently with \ or / for example and possibly some characters are invalid between them.
Review the existing API's that DMIDECODE uses for file paths from smbios-lib and make them both use proper types to describe paths.
@jrgerber , are these functions consumed by dmidecode-rs? If that is the case should be this bug move to the lib repo?
Yes, and that will create work here too.
I noticed structopt was using PathBuf when reading from the command line. Path::from_string() I think knows to accept \ or / . The branch I am working in on smbios-lib I've started playing with using Path. The reason is cross-platform compatibility and accepting things which are paths and not just any string.
@jrgerber , are these functions consumed by dmidecode-rs? If that is the case should be this bug move to the lib repo?
Yes, and that will create work here too.
I noticed structopt was using PathBuf when reading from the command line. Path::from_string() I think knows to accept \ or / . The branch I am working in on smbios-lib I've started playing with using Path. The reason is cross-platform compatibility and accepting things which are paths and not just any string.
There are some functions which take file paths as Strings. These should probably be using PathBuf and OsStr. Different OS's treat paths differently with \ or / for example and possibly some characters are invalid between them.
Review the existing API's that DMIDECODE uses for file paths from smbios-lib and make them both use proper types to describe paths.
https://doc.rust-lang.org/std/path/struct.PathBuf.html
https://doc.rust-lang.org/std/ffi/struct.OsString.html
The text was updated successfully, but these errors were encountered: