• P
    Set psql client encoding from locale by default · 02e14562
    Peter Eisentraut 提交于
    Add a new libpq connection option client_encoding (which includes the
    existing PGCLIENTENCODING environment variable), which besides an
    encoding name accepts a special value "auto" that tries to determine
    the encoding from the locale in the client's environment, using the
    mechanisms that have been in use in initdb.
    
    psql sets this new connection option to "auto" when running from a
    terminal and not overridden by setting PGCLIENTENCODING.
    
    original code by Heikki Linnakangas, with subsequent contributions by
    Jaime Casanova, Peter Eisentraut, Stephen Frost, Ibrar Ahmed
    02e14562
libpq.sgml 268.3 KB