pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Eduard Kracmar <eduard.kracmar@gmail.com>
To: pgsql-bugs@postgresql.org
Subject: BUG #6144: Postgres ignores locale's p_cs_precedes and n_cs_precedes settings
Date: Wed, 3 Aug 2011 12:47:47 GMT
Message-ID: <201108031247.p73CllZh012204@wwwmaster.postgresql.org> (raw)


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).



Message-ID: <201108031247.p73CllZh012204@wwwmaster.postgresql.org>
Permalink:  ../201108031247.p73CllZh012204@wwwmaster.postgresql.org/
Also on:    postgresql.org/message-id/201108031247.p73CllZh012204@wwwmaster.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: eduard.kracmar@gmail.com
  Subject: Re: BUG #6144: Postgres ignores locale's p_cs_precedes and n_cs_precedes settings
  In-Reply-To: <201108031247.p73CllZh012204@wwwmaster.postgresql.org>
  References: <201108031247.p73CllZh012204@wwwmaster.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox