Don't change locale on musl since it would crash
This commit is contained in:
parent
a8aeec2f75
commit
a09d38e182
@ -266,8 +266,11 @@ void Fuse::_logUnknownException() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Fuse::run(const bf::path &mountdir, const vector<string> &fuseOptions) {
|
void Fuse::run(const bf::path &mountdir, const vector<string> &fuseOptions) {
|
||||||
|
#if defined(__GLIBC__)|| defined(__APPLE__) || defined(_MSC_VER)
|
||||||
// Avoid encoding errors for non-utf8 characters, see https://github.com/cryfs/cryfs/issues/247
|
// Avoid encoding errors for non-utf8 characters, see https://github.com/cryfs/cryfs/issues/247
|
||||||
|
// this is ifdef'd out for non-glibc linux, because musl doesn't handle this correctly.
|
||||||
bf::path::imbue(std::locale(std::locale(), new std::codecvt_utf8_utf16<wchar_t>()));
|
bf::path::imbue(std::locale(std::locale(), new std::codecvt_utf8_utf16<wchar_t>()));
|
||||||
|
#endif
|
||||||
|
|
||||||
_mountdir = mountdir;
|
_mountdir = mountdir;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user