Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcfb9c7f

Browse files
committed
Use the new text domain names ("postgres-8.4" instead of "postgres")
Hiroshi Inoue
1 parent0a9ddf7 commitcfb9c7f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

‎src/backend/utils/error/elog.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
*
4343
*
4444
* IDENTIFICATION
45-
* $PostgreSQL: pgsql/src/backend/utils/error/elog.c,v 1.211 2009/01/07 04:26:46 momjian Exp $
45+
* $PostgreSQL: pgsql/src/backend/utils/error/elog.c,v 1.212 2009/01/19 15:34:23 mha Exp $
4646
*
4747
*-------------------------------------------------------------------------
4848
*/
@@ -308,7 +308,7 @@ errstart(int elevel, const char *filename, int lineno,
308308
edata->lineno=lineno;
309309
edata->funcname=funcname;
310310
/* the default text domain is the backend's */
311-
edata->domain=domain ?domain :"postgres";
311+
edata->domain=domain ?domain :PG_TEXTDOMAIN("postgres");
312312
/* Select default errcode based on elevel */
313313
if (elevel >=ERROR)
314314
edata->sqlerrcode=ERRCODE_INTERNAL_ERROR;

‎src/backend/utils/mb/mbutils.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* (currently mule internal code (mic) is used)
55
* Tatsuo Ishii
66
*
7-
* $PostgreSQL: pgsql/src/backend/utils/mb/mbutils.c,v 1.76 2009/01/04 18:37:35 tgl Exp $
7+
* $PostgreSQL: pgsql/src/backend/utils/mb/mbutils.c,v 1.77 2009/01/19 15:34:23 mha Exp $
88
*/
99
#include"postgres.h"
1010

@@ -873,7 +873,7 @@ SetDatabaseEncoding(int encoding)
873873
*/
874874
#ifdefENABLE_NLS
875875
if (encoding==PG_UTF8)
876-
if (bind_textdomain_codeset("postgres","UTF-8")==NULL)
876+
if (bind_textdomain_codeset(textdomain(NULL),"UTF-8")==NULL)
877877
elog(LOG,"bind_textdomain_codeset failed");
878878
#endif
879879
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp