Add hook for locales update after glibc update
This commit is contained in:
parent
d97a6bb6e1
commit
420df2a7a7
11
hooks/ebuild_postinst_post/glibc-update-locales.bash
Normal file
11
hooks/ebuild_postinst_post/glibc-update-locales.bash
Normal file
@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ ${CATEGORY}/${PN} == "sys-libs/glibc" ]] ; then
|
||||
einfo "Updating locales"
|
||||
for _mylang in $(locale -a) ; do
|
||||
if [[ ${_mylang} =~ "utf8" ]] ; then
|
||||
edo localedef -i ${_mylang%.*} -f UTF-8 ${_mylang%.*}.UTF-8
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user