-
Notifications
You must be signed in to change notification settings - Fork 163
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
"cannot change locale" warnings #302
Comments
Thanks @dpprdan . We do install locales and configure as such: https://github.com/rocker-org/rocker-versioned2/blob/master/scripts/install_R.sh#L59-L61 but maybe we ought to switch to that recommended way using We also set LANG, https://github.com/rocker-org/rocker-versioned2/blob/master/dockerfiles/r-ver_4.1.2.Dockerfile#L11, but maybe that needs to be |
Yes, saw this issue, scratched my head, remember I have seen it too. Like you, I think it has to do with which locales are installed. and maybe something (or a value) is missing. But I do not recall what I did to nip this myself. The answer is likely tucked away in one of my containers -- if |
I've built So it is just a matter of getting rid of those pesky warnings. The My hunch is that setting the ENV vars before installing the locale package in |
Confirmed my hunch that setting the ENV vars before the locale package is available is causing the warning. I am using the recommended setup (via localedef) here, which is also recommended for Debian, BTW. It is essentially identical to using local-gen as used by rocker, because, as the locale-gen manpage says:
Since we are only generating one locale, localedef should be sufficient, I suppose. Apparently it is also not necessary to update Finally, I've also not set If you want, @cboettig, I can draft a PR with these changes. |
@dpprdan nice, thanks! a PR on that would be great |
I get "cannot change locale" warnings, when I build r-ver (4.1.2) images. They occur on GHA here as well:
E.g. here
and here
I can't really tell whether it succeeds in the end. I just noticed that the following code is recommended for the official Ubuntu image:
The text was updated successfully, but these errors were encountered: