pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Дмитрий Иванов <firstdismay@gmail.com>
Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: insert column monetary type ver 2
Date: Sat, 20 Nov 2021 12:01:56 -0500
Message-ID: <3175389.1637427716@sss.pgh.pa.us> (raw)
In-Reply-To: <CAPL5KHpHSCXzB+yX4dDqKBRTtkx+M0rY7_Fc8NJnvVDw9E-iww@mail.gmail.com>
References: <CAPL5KHpHSCXzB+yX4dDqKBRTtkx+M0rY7_Fc8NJnvVDw9E-iww@mail.gmail.com>

=?UTF-8?B?0JTQvNC40YLRgNC40Lkg0JjQstCw0L3QvtCy?= <firstdismay@gmail.com> writes:
> I can't figure out the problem.  Digit group group separator causes an
> insertion error, what should I do?
> lc_monetary = 'ru_RU.UTF-8'

On my RHEL8 (moderately recent glibc) platform, that locale's
mon_thousands_sep symbol is not a plain space but "\342\200\257":

p *lconvert
$3 = {decimal_point = 0x23ef120 ".", thousands_sep = 0x23ef140 "", 
  grouping = 0x23ef160 "", int_curr_symbol = 0x23ef1a0 "RUB ", 
  currency_symbol = 0x23ef1c0 "\342\202\275", 
  mon_decimal_point = 0x23ef1e0 ",", 
  mon_thousands_sep = 0x23ef200 "\342\200\257", 
  mon_grouping = 0x23ef220 "\003\003", positive_sign = 0x23ef240 "", 
  negative_sign = 0x23ef260 "-", int_frac_digits = 2 '\002', 
  frac_digits = 2 '\002', p_cs_precedes = 0 '\000', p_sep_by_space = 1 '\001', 
  n_cs_precedes = 0 '\000', n_sep_by_space = 1 '\001', p_sign_posn = 1 '\001', 
  n_sign_posn = 1 '\001', int_p_cs_precedes = 0 '\000', 
  int_p_sep_by_space = 0 '\000', int_n_cs_precedes = 0 '\000', 
  int_n_sep_by_space = 0 '\000', int_p_sign_posn = 0 '\000', 
  int_n_sign_posn = 0 '\000'}

A quick lookup later, that's U+202F or "narrow no-break space".

cash_in is picky about this, and won't take plain ASCII space as
a substitute.  Not sure if it should.

			regards, tom lane





view thread (21+ messages)  latest in thread

Message-ID: <3175389.1637427716@sss.pgh.pa.us>
Permalink:  ../3175389.1637427716@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3175389.1637427716@sss.pgh.pa.us

 · 

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-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, firstdismay@gmail.com
  Subject: Re: insert column monetary type ver 2
  In-Reply-To: <3175389.1637427716@sss.pgh.pa.us>
  References: <CAPL5KHpHSCXzB+yX4dDqKBRTtkx+M0rY7_Fc8NJnvVDw9E-iww@mail.gmail.com> <3175389.1637427716@sss.pgh.pa.us>

* 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