xbps-src: enable C.UTF-8 locale on glibc masterdir

`util-linux` requires `C.UTF-8` for testing.

Since this is an important part of system,
enable `C.UTF-8' for checking `util-linux`.
This commit is contained in:
Đoàn Trần Công Danh 2020-07-28 21:09:54 +07:00 committed by Danh Doan
parent 5c7e0b558e
commit 050861b37e

View file

@ -132,7 +132,10 @@ chroot_prepare() {
# Prepare default locale: en_US.UTF-8.
if [ -s ${XBPS_MASTERDIR}/etc/default/libc-locales ]; then
echo 'en_US.UTF-8 UTF-8' >> ${XBPS_MASTERDIR}/etc/default/libc-locales
printf '%s\n' \
'C.UTF-8 UTF-8' \
'en_US.UTF-8 UTF-8' \
>> ${XBPS_MASTERDIR}/etc/default/libc-locales
fi
touch -f $XBPS_MASTERDIR/.xbps_chroot_init