diff --git a/hooks/ebuild_postinst_post/glibc-update-locales.bash b/hooks/ebuild_postinst_post/glibc-update-locales.bash new file mode 100644 index 0000000..686d8ed --- /dev/null +++ b/hooks/ebuild_postinst_post/glibc-update-locales.bash @@ -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 +