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

Commitd7ee335

Browse files
committed
Tweak a comment to agree a bit better with the new dispensation that
locales are database-wide, not server-wide.
1 parent2fe0f29 commitd7ee335

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

‎src/backend/commands/dbcommands.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*
1414
*
1515
* IDENTIFICATION
16-
* $PostgreSQL: pgsql/src/backend/commands/dbcommands.c,v 1.222 2009/04/23 17:39:21 tgl Exp $
16+
* $PostgreSQL: pgsql/src/backend/commands/dbcommands.c,v 1.223 2009/05/05 23:39:55 tgl Exp $
1717
*
1818
*-------------------------------------------------------------------------
1919
*/
@@ -332,10 +332,12 @@ createdb(const CreatedbStmt *stmt)
332332
errmsg("invalid locale name %s",dbctype)));
333333

334334
/*
335-
* Check whether encoding matches server locale settings. We allow
336-
* mismatch in three cases:
335+
* Check whether chosen encoding matches chosen locale settings. This
336+
* restriction is necessary because libc's locale-specific code usually
337+
* fails when presented with data in an encoding it's not expecting.
338+
* We allow mismatch in three cases:
337339
*
338-
* 1.ctype_encoding = SQL_ASCII, which means either that the locale is
340+
* 1.locale encoding = SQL_ASCII, which means either that the locale is
339341
* C/POSIX which works with any encoding, or that we couldn't determine
340342
* the locale's encoding and have to trust the user to get it right.
341343
*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp