[Webkit-unassigned] [Bug 212459] [Flatpak SDK] Missing locale warnings

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Jun 21 12:45:07 PDT 2020


https://bugs.webkit.org/show_bug.cgi?id=212459

--- Comment #10 from Alicia Boya García <aboya at igalia.com> ---
I hope so. What do you think about this?

diff --git a/Tools/flatpak/webkit-bwrap b/Tools/flatpak/webkit-bwrap
index b342a1da7e29..31d3894e04c2 100755
--- a/Tools/flatpak/webkit-bwrap
+++ b/Tools/flatpak/webkit-bwrap
@@ -58,6 +58,11 @@ def main(args: list) -> int:
     for dst, src in try_bind_mounts.items():
         bwrap_args.extend(["--bind-try", src, dst])

+    for env in os.environ.keys():
+        if env.startswith("LC_") or env == "LANGUAGE":
+            bwrap_args.extend(["--unsetenv", env])
+    bwrap_args.extend(["--setenv", "LANG", "en_US.UTF-8"])
+
     command_line = ' '.join(shlex.quote(a) for a in bwrap_args + args)
     # os.system return code behaves like os.wait. A 16 bit number with the
     # signal in the lower byte and, if the signal is zero, the exit code in

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200621/e3048f69/attachment.htm>


More information about the webkit-unassigned mailing list