Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 41E60B5DBCC for ; Wed, 3 Aug 2011 09:47:48 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 32581-05 for ; Wed, 3 Aug 2011 12:47:48 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by mail.postgresql.org (Postfix) with ESMTP id 9FBBAB5D80A for ; Wed, 3 Aug 2011 09:47:47 -0300 (ADT) 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 p73Cllao012205 for ; Wed, 3 Aug 2011 12:47:47 GMT (envelope-from www@wwwmaster.postgresql.org) Received: (from www@localhost) by wwwmaster.postgresql.org (8.14.3/8.14.3/Submit) id p73CllZh012204; Wed, 3 Aug 2011 12:47:47 GMT (envelope-from www) Date: Wed, 3 Aug 2011 12:47:47 GMT Message-Id: <201108031247.p73CllZh012204@wwwmaster.postgresql.org> To: pgsql-bugs@postgresql.org Subject: BUG #6144: Postgres ignores locale's p_cs_precedes and n_cs_precedes settings From: "Eduard Kracmar" Content-Type: text/plain; charset=utf-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 201108/30 X-Sequence-Number: 30842 The following bug has been logged online: Bug reference: 6144 Logged by: Eduard Kracmar Email address: eduard.kracmar@gmail.com PostgreSQL version: 8.4.8 Operating system: Debian/testing Description: Postgres ignores locale's p_cs_precedes and n_cs_precedes settings Details: I'm using sk_SK.utf8 locales on Debian/testing. Running postgresql 8.4.8 and it ignores p_cs_precedes and n_cs_precedes settings in /usr/share/i18n/locales/sk_SK. Euro sign should follow monetary quantity. As tested in PHP for example, it works as it should: $number = 1234.567; setlocale(LC_MONETARY, 'sk_SK.utf8'); echo money_format('%n', $number); // 1 234,57 € But in postgres while using money data type with lc_monetary set to 'sk_SK.utf8', € sign is before figure: €123,45 Also, displaying monetary quatity bigger than 999 gives null, compared to de_DE.utf8 which gives correct formatting: €1.234,56 (except for euro sign of course, as mentioned before).