Skip to content

Commit 5e98478

Browse files
felixonmarsanthraxx
authored andcommitted
mkarchroot: generate and use C.UTF-8 by default
systemd >= 251 is forcing nspawns to use LANG=C.UTF-8: systemd/systemd@b626f69 It makes sense to generate the C.UTF-8 locate here when using it as the default LANG value. Related to: https://bugs.archlinux.org/task/74864
1 parent 0c61761 commit 5e98478

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mkarchroot.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ done
8484
unshare --mount pacstrap -${umode}Mcd ${pac_conf:+-C "$pac_conf"} "$working_dir" \
8585
"${cache_dirs[@]/#/--cachedir=}" "$@" || die 'Failed to install all packages'
8686

87-
printf '%s.UTF-8 UTF-8\n' en_US de_DE > "$working_dir/etc/locale.gen"
88-
echo 'LANG=en_US.UTF-8' > "$working_dir/etc/locale.conf"
87+
printf '%s.UTF-8 UTF-8\n' C en_US de_DE > "$working_dir/etc/locale.gen"
88+
echo 'LANG=C.UTF-8' > "$working_dir/etc/locale.conf"
8989
echo "$CHROOT_VERSION" > "$working_dir/.arch-chroot"
9090

9191
systemd-machine-id-setup --root="$working_dir"

0 commit comments

Comments
 (0)