diff options
Diffstat (limited to 'image/backends')
-rw-r--r-- | image/backends/tar.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/image/backends/tar.cc b/image/backends/tar.cc index 7ca9f75..279a11c 100644 --- a/image/backends/tar.cc +++ b/image/backends/tar.cc @@ -98,10 +98,10 @@ public: if(dent.is_symlink()) { archive_entry_set_filetype(entry, AE_IFLNK); fs::path resolved = fs::read_symlink(dent.path(), ec); - const fs::path::value_type *c_rpath = resolved.c_str(); - archive_entry_set_symlink(entry, c_rpath); + const fs::path::value_type *c_rpath = resolved.u8string().c_str(); + archive_entry_update_symlink_utf8(entry, c_rpath); } - archive_entry_set_pathname(entry, relpath.c_str()); + archive_entry_update_pathname_utf8(entry, relpath.u8string().c_str()); if(archive_write_header(this->a, entry) != ARCHIVE_OK) { output_error("tar backend", archive_error_string(a)); code = -1; |