Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: Skip i18n message translation tests when LC_ALL="C" or "C.UTF-8" #801

Merged
merged 4 commits into from Sep 27, 2023

Conversation

gadenbuie
Copy link
Member

@gadenbuie gadenbuie commented Sep 26, 2023

This PR simply skips checking that learnr can control the language used for R's messages in known scenarios where the LANGUAGE environment variable is ignored. Currently this is true for LC_ALL="C" and with newer versions of glibc also for LC_ALL="C.UTF-8".

In an earlier iteration, I tried directly testing that if we are able to change the language of R message – by trying and succeeding or failing – but this create many more problems than it solved.

Fixes #800

Note that in the future we could maybe use Sys.setLanguage(), but this was added in R 4.2.0.

@gadenbuie gadenbuie changed the title tests: Skip i18n message translation tests if we can't change the R language tests: Skip i18n message translation tests when LC_ALL="C" or "C.UTF-8" Sep 27, 2023
@gadenbuie gadenbuie merged commit 2859e0c into main Sep 27, 2023
10 of 11 checks passed
@gadenbuie gadenbuie deleted the fix/cran-tests-i18n branch September 27, 2023 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix CRAN issues in Debian r-devel
1 participant