diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2024-05-22 11:50:09 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2024-10-04 10:43:49 -0500 |
commit | 584ec96ab97804952faf419b4f290044dade03b3 (patch) | |
tree | 201a920d1050c92261987f35b5c2e3dc538fe2c0 /image/backends | |
parent | 77cf17e21ae42cf67eea0887d4e2e03e4fffb995 (diff) | |
download | horizon-584ec96ab97804952faf419b4f290044dade03b3.tar.gz horizon-584ec96ab97804952faf419b4f290044dade03b3.tar.bz2 horizon-584ec96ab97804952faf419b4f290044dade03b3.tar.xz horizon-584ec96ab97804952faf419b4f290044dade03b3.zip |
image: tar backend: Set C++ locale to C.UTF-8
This ensures that boost::filesystem uses UTF-8 for filenames.
Closes: #381
Diffstat (limited to 'image/backends')
-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; |