rust/hg-cpython/src/filepatterns.rs
changeset 43772 ee3872c14ab3
parent 43771 f79377f24487
child 43818 ce088b38f92b
--- a/rust/hg-cpython/src/filepatterns.rs	Tue Nov 19 23:16:16 2019 +0900
+++ b/rust/hg-cpython/src/filepatterns.rs	Tue Nov 19 23:19:57 2019 +0900
@@ -68,7 +68,7 @@
         .iter()
         .map(|(path, syn)| {
             (
-                PyBytes::new(py, &path.to_string_lossy().as_bytes()),
+                PyBytes::new(py, &files::get_bytes_from_path(path)),
                 PyBytes::new(py, syn),
             )
         })