From acbe3b45ea73761f65aeb8b8b6b6ad253401894f Mon Sep 17 00:00:00 2001 From: ohfp <1813007-ohfp@users.noreply.gitlab.com> Date: Thu, 10 Feb 2022 14:51:52 +0100 Subject: [PATCH] hopefully fix some python utf8/ascii yaml parsing issue --- scripts/1_Install_Dependencies.sh | 6 +++++- scripts/4_Build_Binary_Tarball.sh | 6 ++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/scripts/1_Install_Dependencies.sh b/scripts/1_Install_Dependencies.sh index 211fbc0..8fea58e 100755 --- a/scripts/1_Install_Dependencies.sh +++ b/scripts/1_Install_Dependencies.sh @@ -39,7 +39,8 @@ _DEPENDENCIES="wget git xvfb \ python \ libffi-dev \ nodejs-mozilla \ - nasm-mozilla" + nasm-mozilla \ + locales" # cargo \ # rustc \ @@ -67,6 +68,9 @@ else apt-get -y install clang-13 libclang-13-dev fi +# avoid python parsing files as ascii instead of utf8 and complaining +locale-gen en_US.UTF-8 + # we need a more recent rust # …to test if a fix in 1.57 magically fixes aarch64 hanging curl https://sh.rustup.rs -o rustup.sh diff --git a/scripts/4_Build_Binary_Tarball.sh b/scripts/4_Build_Binary_Tarball.sh index 28443f7..a3567b7 100755 --- a/scripts/4_Build_Binary_Tarball.sh +++ b/scripts/4_Build_Binary_Tarball.sh @@ -16,6 +16,12 @@ export DEB_BUILD_HARDENING_FORMAT=1 export DEB_BUILD_HARDENING_PIE=1 # export PATH=/usr/lib/nasm-mozilla/bin:$PATH +# avoid python parsing files as ascii instead of utf8 and complaining +export LANG='en_US.UTF-8' +export LANGUAGE='en_US:en' +export LC_ALL='en_US.UTF-8' + + # add cargo binary to path source /root/.cargo/env