summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authorJames Hilliard <james.hilliard1@gmail.com>2019-05-04 18:25:17 +0200
committerwm4 <1387750+wm4@users.noreply.github.com>2019-09-21 12:53:47 +0200
commitabfc58cad424fb9a023d0334e20fd34d63f887a7 (patch)
tree697c92e8d463db1c22e126254f78efd165c8a824 /stream
parent4c4d7a64c6354a792e83552158108f450f12884a (diff)
downloadmpv-abfc58cad424fb9a023d0334e20fd34d63f887a7.tar.bz2
mpv-abfc58cad424fb9a023d0334e20fd34d63f887a7.tar.xz
stream_libarchive: Always use LC_CTYPE_MASK for libarchive
Using LC_ALL_MASK is unnecessary and unreliable on some systems. Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Diffstat (limited to 'stream')
-rw-r--r--stream/stream_libarchive.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stream/stream_libarchive.c b/stream/stream_libarchive.c
index bc1fb94d12..35ac4d5528 100644
--- a/stream/stream_libarchive.c
+++ b/stream/stream_libarchive.c
@@ -243,7 +243,7 @@ struct mp_archive *mp_archive_new(struct mp_log *log, struct stream *src,
{
struct mp_archive *mpa = talloc_zero(NULL, struct mp_archive);
mpa->log = log;
- mpa->locale = newlocale(LC_ALL_MASK, "C.UTF-8", (locale_t)0);
+ mpa->locale = newlocale(LC_CTYPE_MASK, "C.UTF-8", (locale_t)0);
if (!mpa->locale) {
mpa->locale = newlocale(LC_CTYPE_MASK, "", (locale_t)0);
if (!mpa->locale)