summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoshua Watt <JPEWhacker@gmail.com>2024-10-02 16:54:51 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-10-30 16:03:52 +0000
commit87c22abb1f11be430caf4372e6b833dc7d77564e (patch)
treeebce2930fe9f40c0e82b6b955a82eefc227273ef
parentf6b38ce3c90e1600d41c2ebb41e152936a0357d7 (diff)
downloadmeta-mingw-kirkstone.tar.gz
Glib likes to try and determine the local name using the Windows GetConsoleOutputCP(), which doesn't work well running under wine in our test cases (it seems to be linked to stdin not being a terminal). This results in the error message: GLib-WARNING (recursed) **: Failed to determine console output code page: Invalid access.. Falling back to UTF-8 and then Glib falls back to the locale "UTF-8", which is invalid and the program will likely crash. In particular, pkg-config seems to be sensitive to this on some hosts (e.g. Ubuntu 24.04) Set the LANG variable to a valid language to make sure that this codepath in Glib is not triggered. Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/oeqa/sdkmingw/context.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/oeqa/sdkmingw/context.py b/lib/oeqa/sdkmingw/context.py
index edabcbd..8fc475d 100644
--- a/lib/oeqa/sdkmingw/context.py
+++ b/lib/oeqa/sdkmingw/context.py
@@ -31,6 +31,12 @@ class OESDKMinGWTestContext(OESDKTestContext):
31 # Convenience variables to make test cases easier to write 31 # Convenience variables to make test cases easier to write
32 env['SDK_DIR'] = getattr(self, 'wine_sdk_dir', '') 32 env['SDK_DIR'] = getattr(self, 'wine_sdk_dir', '')
33 33
34 # Set the language. If this is not set to a valid language, then
35 # program that use glib will attempt to determine the language from
36 # stdin, which results in an error, fallback to "UTF-8" which is
37 # invalid and crash
38 env["LANG"] = "C.UTF-8"
39
34 return env 40 return env
35 41
36 def wine_path(self, p): 42 def wine_path(self, p):