fix: stop setting LC_ALL in armbian-lang.sh#10132
Conversation
📝 WalkthroughWalkthroughThe armbian-lang.sh profile script was changed to stop exporting LC_ALL, replacing that behavior with a conditional fallback that sets LANG to C.UTF-8 only when LANG is unset, avoiding interference with update-locale. ChangesLocale Fallback Fix
Estimated code review effort: 1 (Trivial) | ~3 minutes Related issues:
Suggested labels: bugfix, bsp Suggested reviewers: igorpecovnik 🐰 A hop, a fix, a script made light, 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Hey @saschabuehrle! 👋Thanks for submitting your first pull request to the Armbian project — we're excited to have you contributing! 🧡 If you'd like to stay informed about project updates or collaborate more closely with the team, Also, don’t forget to ⭐ star the repo if you haven’t already — and welcome aboard! 🚀 |
|
This was one very old workaround ... |
|
✅ This PR has been reviewed and approved — all set for merge! |
Fixes #10131
export LC_ALL=$LANGoverrides every individual LC_* variable unconditionally, so any per-category locale set viaupdate-locale(like LC_TIME=en_GB.UTF-8) gets ignored at login. The original intent was to suppress perl locale warnings on minimal images where LANG might be unset.Replaced with a LANG fallback guard - if LANG is empty, default it to C.UTF-8. This still suppresses the perl warnings but lets update-locale work as expected.
saschabuehrle
Summary by CodeRabbit
LANGvalue is set, helping preserve custom locale configuration.