Hey, thanks for your patience waiting for me to get back to this. To be honest I was kinda busy and saw "I'm thinking it's not actually an issue with IndigoStack", sighed a huge sigh of relief and thought "I'll come back to that later" haha
Thanks also for such deep research on it, and for providing such a foolproof replication of the issue. Turns out you were very close indeed with your attempted fix. I don't use Postgres (yet) but the following fixed the gettext
error for me (ref this discussion):
env[LC_ALL]=en_US.UTF-8
env[LC]=en_US.UTF-8
env[LANG]=en_US.UTF-8
env[LC_MESSAGES]=en_US.UTF-8
env[PGGSSENCMODE]=disable
I put that at the end of an etc/php-fpm.d/www.conf
override (I think you've mastered Indigo overrides, but let me know if not), and the gettext
error went away immediately. I've added the env[PGGSSENCMODE]=disable
in the hopes it will fix the Postgres side of the issue, but as mentioned I can't vouch for that.
If you have time, I'd really value your input on whether this fixes the issue for you. If it does, I'll roll it into the next Indigo release.
Note, configuring en_US.UTF-8
is a bit of a hack, as not everybody wants en_US nor UTF-8, so I am unsure how universally acceptable it is to set them; I've done a lot of i18n over the years but the frameworks I've used for it (Drupal & Laravel) handle it all at a higher level than this php-fpm configuration. Do you think en_US.UTF-8
will be ok to be rolled into Indigo's config?