-
/etc/profile loops over files that end with .sh, so if these don't have a .sh file extension on locale it's not sourced. As such, changing the extension of the locale script to .sh means that it's sourced by default. Strictly speaking musl already uses "C.UTF-8" as default[0], but some software will not use UTF-8 features without an UTF-8 locale set. E.g. DBus wont enable UTF-8 mode without an UTF-8 locale set, which breaks applications which expect it to be set, like gnome-terminal. Other software which is hit by this is e.g. tmux, see #7374. fixes #11583 0: https://wiki.musl-libc.org/functional-differences-from-glibc.html#Default-locale
a5e6bb7b