1
0
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:
Alvaro Herrera
2009-03-08 16:07:12 +00:00
parent 387efd3648
commit c3b5d2f138
3 changed files with 25 additions and 17 deletions

View File

@ -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
}