Skip to content

Commit 72b6916

Browse files
CI: fix locale not being available on new build image.
1 parent af13efc commit 72b6916

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.gitlab-ci.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@ test:
3434
stage: test
3535
tags: [ docker, linux, x64 ]
3636
variables:
37-
# CentOS 7 defaults to ASCII, use a UTF-8 compatible locale so UTF-8 tests that interact with file system work.
38-
LC_ALL: "en_US.UTF-8"
37+
# Image defaults to POSIX (ASCII), set a compatible locale so UTF-8 tests that interact with the file system work.
38+
# Check with 'locale -a' for available locales.
39+
LC_ALL: "C.UTF-8"
3940
before_script:
4041
# Print Gradle and JVM version info
4142
- ./gradlew -version
@@ -83,8 +84,9 @@ test-macos:
8384
extends: .test-template
8485
tags: [ docker, linux, x64 ]
8586
variables:
86-
# CentOS 7 defaults to ASCII, use a UTF-8 compatible locale so UTF-8 tests that interact with file system work.
87-
LC_ALL: "en_US.UTF-8"
87+
# Image defaults to POSIX (ASCII), set a compatible locale so UTF-8 tests that interact with the file system work.
88+
# Check with 'locale -a' for available locales.
89+
LC_ALL: "C.UTF-8"
8890
script:
8991
# Note: do not run check task as it includes SpotBugs.
9092
- ./ci/test-with-asan.sh $GITLAB_REPO_ARGS $VERSION_ARGS clean :tests:objectbox-java-test:test

0 commit comments

Comments
 (0)