[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

How to force build to use LANG=C.UTF-8?



The Redmine package includes a test run at build time that checks for 
a list of particular response values.  The problem is that these 
values are translated.  Running the build in a different language 
causes the test to fail.

Failure:
ProjectAdminQueryTest#test_project_statuses_values_should_return_all_statuses 
[test/unit/project_admin_query_test.rb:99]:
--- expected
+++ actual
@@ -1 +1 @@
-[["active", "1"], ["closed", "5"], ["archived", "9"], ["scheduled for 
deletion", "10"]]
+[["actif", "1"], ["fermé", "5"], ["archivé", "9"], ["planifié pour 
suppression", “10”]]

https://tests.reproducible-builds.org/debian/rb-pkg/trixie/arm64/
redmine.html

Setting "export LANG=C.UTF-8” does not prevent this test from running 
in a foreign language.

https://salsa.debian.org/ruby-team/redmine/-/jobs/7360518#L3871

This causes periodic failures during Salsa-CI’s build and in 
reproducible builds.

Does anyone know of a way to force the build to always be in C.UTF-8?

-- 
Soren Stoutner
soren@debian.org

Attachment: signature.asc
Description: This is a digitally signed message part.


Reply to: