diff --git a/scripts/build/opensim-gui-linux-build-script.sh b/scripts/build/opensim-gui-linux-build-script.sh index a6558f237..eb1718538 100644 --- a/scripts/build/opensim-gui-linux-build-script.sh +++ b/scripts/build/opensim-gui-linux-build-script.sh @@ -82,6 +82,15 @@ else fi echo +# Set UTF-8 locale and en_US locale for numeric formatting. +echo "LOG: CHECKING AND SETTING LOCALE..." +sudo apt update && sudo apt install --yes locales +sudo locale-gen en_US.UTF-8 +sudo update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 +export LANG=en_US.UTF-8 +locale +echo + # Install dependencies from package manager. echo "LOG: INSTALLING DEPENDENCIES..." sudo apt-get update && sudo apt-get install --yes build-essential cmake autotools-dev autoconf pkg-config automake libopenblas-dev liblapack-dev freeglut3-dev libxi-dev libxmu-dev doxygen python3 python3-dev python3-numpy python3-setuptools libpcre3 libpcre3-dev libpcre2-dev byacc git gfortran libtool libssl-dev libffi-dev ninja-build patchelf || ( echo "Installation of dependencies using apt-get failed." && exit ) @@ -217,4 +226,4 @@ echo echo "LOG: INSTALLING OPENSIM-GUI..." cd ~/opensim-workspace/opensim-gui-source/Gui/opensim/dist/installer/opensim bash INSTALL -echo \ No newline at end of file +echo