mirror of
https://github.com/postgres/postgres.git
synced 2025-06-14 18:42:34 +03:00
On Windows, call bind_textdomain_codeset on domains other than the default one,
too, so that the codeset is properly mapped on the newly added PL domains.
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/utils/init/miscinit.c,v 1.172 2009/01/05 13:57:12 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/utils/init/miscinit.c,v 1.173 2009/03/08 16:07:12 alvherre Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -30,6 +30,7 @@
|
||||
#endif
|
||||
|
||||
#include "catalog/pg_authid.h"
|
||||
#include "mb/pg_wchar.h"
|
||||
#include "miscadmin.h"
|
||||
#include "postmaster/autovacuum.h"
|
||||
#include "storage/fd.h"
|
||||
@ -1241,6 +1242,7 @@ pg_bindtextdomain(const char *domain)
|
||||
|
||||
get_locale_path(my_exec_path, locale_path);
|
||||
bindtextdomain(domain, locale_path);
|
||||
pg_bind_textdomain_codeset(domain, GetDatabaseEncoding());
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
Reference in New Issue
Block a user