oli-obk / rust-pandoc

Apache License 2.0
51 stars 29 forks source link

OutputKind File wants a String instead of PathBuf #23

Closed larswirzenius closed 4 years ago

larswirzenius commented 4 years ago

The OutputKind enum defines File(String). This means any filename must be UTF-8 encoded. It would be better to (optionally?) support a FileBuf to support environments and filenames that are not UTF-8 encoded.

For input filenames, PathBuf seems to work.

oli-obk commented 4 years ago

Yes, that's a good idea.