diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d15c004fb5b9865157a68bb4eb3198e70293e1dc..90a126f814da4811a00cdd033e496ddbed160f43 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -4,8 +4,8 @@ tests:
     tags:
         - docker
     script:
-        - export LC_ALL=$(locale -a | grep en_US)
-        - export LANG=$(locale -a | grep en_US)
+        - export LC_ALL=C.UTF-8
+        - export LANG=C.UTF-8
         - if [ -f requirements.txt ]; then pip3 install -r requirements.txt; fi
         - pip3 install git+https://github.com/thibgo/randomscm.git@v0.0.0-alpha
         - pip3 install git+https://github.com/multi-learn/scikit-multimodallearn.git
@@ -26,8 +26,8 @@ doc:
         - master
         - develop
     script:
-        - export LC_ALL=$(locale -a | grep en_US)
-        - export LANG=$(locale -a | grep en_US)
+        - export LC_ALL=C.UTF-8
+        - export LANG=C.UTF-8
         - if [ -f requirements.txt ]; then pip3 install -r requirements.txt; fi
         - pip3 install git+https://github.com/thibgo/randomscm.git@v0.0.0-alpha
         - pip3 install git+https://github.com/multi-learn/scikit-multimodallearn.git
@@ -50,8 +50,8 @@ pages:
     only:
         - master
     script:
-        - export LC_ALL=$(locale -a | grep en_US)
-        - export LANG=$(locale -a | grep en_US)
+        - export LC_ALL=C.UTF-8
+        - export LANG=C.UTF-8
         - if [ -f requirements.txt ]; then pip3 install -r requirements.txt; fi
         - pip3 install git+https://github.com/thibgo/randomscm.git@v0.0.0-alpha
         - pip3 install git+https://github.com/multi-learn/scikit-multimodallearn.git