Forgot the encoding part.

This commit is contained in:
Anton Hvornum 2022-05-15 22:16:10 +02:00
parent 6a62aa4d3a
commit d82175abcd
No known key found for this signature in database
GPG Key ID: F1234C5BA67C59DF
1 changed files with 1 additions and 1 deletions

View File

@ -1084,7 +1084,7 @@ class Installer:
locale_data = locale.read()
# TODO: A bit of a hack to convert LANG=en_US.UTF-8 into just US.UTF-8
locale_and_encoding = locale_data.split('=', 1)[1].split('_', 1)[1].split('.', 1)[0]
locale_and_encoding = locale_data.split('=', 1)[1].split('_', 1)[1]
vconsole.write(f"LANG={LANG}_{locale_and_encoding}\n")
return True