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

Language/locale changes during rig add release #138

Closed
claczny opened this issue Jan 10, 2023 · 2 comments
Closed

Language/locale changes during rig add release #138

claczny opened this issue Jan 10, 2023 · 2 comments
Labels
bug an unexpected problem or unintended behavior

Comments

@claczny
Copy link

claczny commented Jan 10, 2023

Parallel to my issue #137, I observe that, for some reason, the language changes during the installation of an R release:

cedric.laczny:/Users/cedric.laczny/ $ rig add release                            [11:19:57]
[INFO] Running `sudo` for adding new R versions. This might need your password.
[INFO] Downloading https://cloud.r-project.org/bin/macosx/big-sur-arm64/base/R-4.2.2-arm64.pkg -> /tmp/rig/arm64-R-4.2.2-arm64.pkg
[INFO] Forgetting installed versions
[INFO] Running installer
[INFO] > installer: Package name is R 4.2.2 for macOS (ARM64)
[INFO] > installer: Installing at base path /
[INFO] > installer: The install was successful.
[INFO] Forgetting installed versions
[INFO] Fixing permissions
[INFO] Updating R-* quick links (as needed)
[INFO] Adding R-release alias to R 4.2-arm64
[INFO] Setting default CRAN mirror
[INFO] Installing pak for R 4.2-arm64 (if not installed yet)
[INFO] > Installation du package dans ‘/Users/cedric.laczny/Library/R/arm64/4.2/library’
[INFO] > (car ‘lib’ n'est pas spécifié)
[INFO] > essai de l'URL 'https://r-lib.github.io/p/pak/stable/mac.binary.big-sur-arm64/darwin20/aarch64/bin/macosx/big-sur-arm64/contrib/4.2/../../../../../../../../darwin20/aarch64/pak_0.3.1_R-4-2_aarch64-darwin20.tgz'
[INFO] > Content type 'application/octet-stream' length 5316611 bytes (5.1 MB)
[INFO] > ==================================================
[INFO] > downloaded 5.1 MB
[INFO] >
[INFO] >
[INFO] > Les packages binaires téléchargés sont dans
[INFO] > 	/tmp/RtmppFIWVQ/downloaded_packages

Any ideas why this is happening?
Thank you!

[ADDENDUM]
My primary system language is English:
image

But my current location is Luxembourg.

@gaborcsardi
Copy link
Member

I think this is probably because sudo does not keep the environment variables. We need to keep LC_* env vars and also LANG.

@gaborcsardi gaborcsardi added the bug an unexpected problem or unintended behavior label Feb 18, 2023
@gaborcsardi
Copy link
Member

I can't actually reproduce this in Ventura, sudo keeps the locale for me. Nevertheless we explicitly keep LANG and the LC_* env vars, so hopefully it solves your issue as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants