New comment by ahesford on void-packages repository https://github.com/void-linux/void-packages/pull/39264#issuecomment-1732005475 Comment: I don't think we should be worrying about this. The stuff in `/etc/profile` and `/etc/profile.d` is supposed to be read for *login* shells, which means that the shell is expected to stand up the environment from scratch. It isn't really a bug that login shells overwrite whatever locale information already exists in the environment. Hacking around the fact that GDM expects its forcing of these variables to be respected seems best resolved by looking to `GDM_LANG` in some gdm-specific profile.d snippet that runs *after* the default locale is configured.