From 045f8366f198d02e3117c6532421eb1736a684b9 Mon Sep 17 00:00:00 2001 From: Simon McVittie <smcv@collabora.com> Date: Wed, 16 May 2018 20:54:53 +0100 Subject: [PATCH] wrap: Accompany host libc with host locales Signed-off-by: Simon McVittie <smcv@collabora.com> --- pressure-vessel-wrap | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pressure-vessel-wrap b/pressure-vessel-wrap index 30ecc2cc8..d0f3e3045 100755 --- a/pressure-vessel-wrap +++ b/pressure-vessel-wrap @@ -566,6 +566,15 @@ if [ -n "$runtime" ]; then bwrap_options+=(--ro-bind "$real_path_in_host" \ "/usr$real_path_in_runtime") fi + + # We should also pick up its locale archives. + if [ -e /usr/lib/locale ]; then + bwrap_options+=(--ro-bind /usr/lib/locale /usr/lib/locale) + fi + + if [ -e /usr/share/i18n ]; then + bwrap_options+=(--ro-bind /usr/share/i18n /usr/share/i18n) + fi fi # /lib, /lib32 or /lib64 -- GitLab