-
Notifications
You must be signed in to change notification settings - Fork 502
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
Fixing double insertion of encoding in locale.gen/locale.conf #1421
Conversation
…t was mentioned in the issue comments: #1200 (comment)
…e more correct locale generation introduced in this PR.
Fixed the encoding issue by using |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM as a temporary fix.
Perfect, I've ran some 40+ installations with this now and it seems to hold up. |
@Torxed would you mind sharing your automated installation setup, it might be quite useful since I'm tackling some upgrades to the profiles atm :) |
Sure, it's as simple as uploading a
The script archtest.py is by far not perfect, it probably has some poor assumptions of packages that I always have installed that might be missing on your setup. But it should be trivial to tweak around. |
Nice I'll give that a go! |
Let me know how it went. autorun_string = "[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] &&"
autorun_string += ' sh -c "cd /root/archinstall-git;'
autorun_string += ' git config --global pull.rebase false;'
autorun_string += ' git pull;'
autorun_string += ' cp examples/guided.py ./;'
autorun_string += ' python guided.py'
# Append options to archinstall (aka guided.py)
if args.conf:
autorun_string += f' --conf {args.conf}'
if args.disk_layout:
autorun_string += f' --disk_layout {args.disk_layout}'
if args.creds:
autorun_string += f' --creds {args.creds}'
if args.silent:
autorun_string += f' --silent'
autorun_string += '";\n' |
/etc/locale.gen
is appended with twoen_US.UTF-8 UTF-8
. #1200PR Description:
Since we migrated to the new menu system, we started give more and accurate options throughout the installation (since we have a better search and way of presenting).
This meant that locales were offered "as is", meaning we offered both:
Previously we would only have offered
sv_SE
, and separately offeredUTF-8
orISO-8859-1
in another step.Since we still offered both steps, but also both options - you see where this is going.
The "fix" is a small one, it simply checks if there's a
.
in the locale part, splits that and overridesUTF-8
if the split one differes fromUTF-8
(which is our default value).Any modifiers like
sr_RS@latin UTF-8
should be kept intact as well, and placed in the order mentioned here: Locale#Generating_locales:language[_territory][.codeset][@modifier]
.Tests and Checks