diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2024-05-22 11:50:09 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2024-05-22 11:52:00 -0500 |
commit | 4a8a6aeee88240e35bd14a78cf6dc7efa67f7ffd (patch) | |
tree | ef17a8db1e2900042ccc435d49b08587139f2e7d | |
parent | 0a876b1975db1a882a0a6116a1df81456af9cd8a (diff) | |
download | horizon-4a8a6aeee88240e35bd14a78cf6dc7efa67f7ffd.tar.gz horizon-4a8a6aeee88240e35bd14a78cf6dc7efa67f7ffd.tar.bz2 horizon-4a8a6aeee88240e35bd14a78cf6dc7efa67f7ffd.tar.xz horizon-4a8a6aeee88240e35bd14a78cf6dc7efa67f7ffd.zip |
image: tar backend: Set C++ locale to C.UTF-8
This ensures that boost::filesystem uses UTF-8 for filenames.
Closes: #381
-rw-r--r-- | image/backends/tar.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/image/backends/tar.cc b/image/backends/tar.cc index 1f9c631..19d2049 100644 --- a/image/backends/tar.cc +++ b/image/backends/tar.cc @@ -44,7 +44,9 @@ public: TarBackend(const std::string &ir, const std::string &out, const std::map<std::string, std::string> &opts, CompressionType _c = None) - : BasicBackend{ir, out, opts}, comp{_c} {}; + : BasicBackend{ir, out, opts}, comp{_c} { + std::locale::global(std::locale("C.UTF-8")); + }; int prepare() override { int res; |