In an attempt to make some progress, I tried to move the spot in the program where the call for accountsservice's SetLanguage method takes place. I seeked a spot after an eCryptfs protected HOME has been decrypted, but before PAM reads ~/.pam_environment and sets the locale environment accordingly. Unfortunately such a spot does not seem to exist.
The decryption seems to be completed only in the end of session_run(), but at that point it's too late for PAM, even if you take into account the proposed fix of bug #952185 that's currently being considered. Consequently, just moving the SetLanguage call is not sufficient to fix this bug.
In an attempt to make some progress, I tried to move the spot in the program where the call for accountsservice's SetLanguage method takes place. I seeked a spot after an eCryptfs protected HOME has been decrypted, but before PAM reads ~/.pam_environment and sets the locale environment accordingly. Unfortunately such a spot does not seem to exist.
The decryption seems to be completed only in the end of session_run(), but at that point it's too late for PAM, even if you take into account the proposed fix of bug #952185 that's currently being considered. Consequently, just moving the SetLanguage call is not sufficient to fix this bug.