Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 11E981337BDA for ; Fri, 7 Jan 2011 02:43:59 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 06869-10 for ; Fri, 7 Jan 2011 06:43:59 +0000 (UTC) Received: from mx1.hub.org (mx1.hub.org [200.46.208.106]) by mail.postgresql.org (Postfix) with ESMTP id B32D51337BD9 for ; Fri, 7 Jan 2011 02:43:58 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by mx1.hub.org (Postfix) with ESMTP id 54AD4326141F for ; Fri, 7 Jan 2011 06:43:58 +0000 (UTC) Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by wwwmaster.postgresql.org (8.14.3/8.14.3) with ESMTP id p076ggYj059007 for ; Fri, 7 Jan 2011 06:42:42 GMT (envelope-from www@wwwmaster.postgresql.org) Received: (from www@localhost) by wwwmaster.postgresql.org (8.14.3/8.14.3/Submit) id p076ggoG059006; Fri, 7 Jan 2011 06:42:42 GMT (envelope-from www) Date: Fri, 7 Jan 2011 06:42:42 GMT Message-Id: <201101070642.p076ggoG059006@wwwmaster.postgresql.org> To: pgsql-bugs@postgresql.org Subject: BUG #5818: initdb lose the single quote of locale From: "yulei" Content-Type: text/plain; charset=utf-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 201101/55 X-Sequence-Number: 29077 The following bug has been logged online: Bug reference: 5818 Logged by: yulei Email address: yu1ei@hotmail.com PostgreSQL version: 9.0.2 Operating system: Windows XP Service Pack 3 Description: initdb lose the single quote of locale Details: Hi,dear developers! I am using a chinses window xp os. i run "initdb -E UTF-8 -D temp" in cmd,it can get the locale:"Chinese_People's Republic of China.936"。 but when initdb creating template1 , it lose the single quote of locale,it use "Chinese_Peoples Republic of China.936"(notice that , it lose the ' after "Chinese_People" ) for the "template1" record's “datcollate”,“datctype” Column in tablepg_database。 though "creating template1 database" is ok,but the initdb's next step "initializing pg_authid ..." failed. bucause the invalid locale "Chinese_People's Republic of China.936" is used to run the command "REVOKE ALL on pg_authid FROM public;"。 and the cmd resule is : creating template1 database in temp/base/1 ... ok initializing pg_authid ... : ݿʹõԻͲϵͳIJ ϸϢ: ݿ⼯Ⱥ LC_COLLATE "Chinese_Peoples Re ʾ: һԻ´ݿ⣬߰װʧԻ. child process exited with exit code 1 initdb: removing data directory "temp"。 to support what i say , i test like: add " create pg_database_test 5158 ( datname = name ) open pg_database_test insert OID = 1 ( "Chinese_People's Republic of China.936") close pg_database_test " to postgreSQLHOME/share/postgres.bki run cmd "initdb -E UTF-8 -D temp --local=chs" it can init successful,then i start the server,run sql: "SELECT * from pg_database_test" ,the result show "Chinese_Peoples Republic of China.936". yes ,the single quote of test string "Chinese_People's Republic of China.936" lose. can you fix it ?