v4 adds error handling, in case newlocale("C") fails. I created CF entry #5166 for this.
pgsql-hackers by date:
Соглашаюсь с условиями обработки персональных данных