From: | James Coleman <jtc331(at)gmail(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Juan José Santamaría Flecha <juanjo(dot)santamaria(at)gmail(dot)com>, Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>, Mark Dilger <mark(dot)dilger(at)enterprisedb(dot)com>, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>, Arthur Zakirov <zaartur(at)gmail(dot)com>, Tomas Vondra <tomas(dot)vondra(at)2ndquadrant(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Allow to_date() and to_timestamp() to accept localized names |
Date: | 2020-03-08 02:33:40 |
Message-ID: | CAAaqYe8-PTBympzUioLE8xn_CeK4c16YKDq91CLD43kDDC98GQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Sat, Mar 7, 2020 at 9:31 PM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> James Coleman <jtc331(at)gmail(dot)com> writes:
> > On master with a clean build (and configure re-run) and a fresh init-db,
> > I'm seeing the collate.linux.utf8 test fail with the attached diff.
>
> -- to_char
> SET lc_time TO 'tr_TR';
> +ERROR: invalid value for parameter "lc_time": "tr_TR"
> SELECT to_char(date '2010-02-01', 'DD TMMON YYYY');
>
> Looks like you may not have Turkish locale installed? Try
>
> locale -a | grep tr_TR
>
> If you don't see "tr_TR.utf8" or some variant spelling of that,
> the collate.linux.utf8 test is not gonna pass. The required
> package is probably some sub-package of glibc.
>
> A workaround if you don't want to install more stuff is to run the
> regression tests in C locale, so that that test script gets skipped.
>
> regards, tom lane
>
Hmm, when I grep the locales I see `tr_TR.utf8` in the output. I assume the
utf8 version is acceptable? Or is there a non-utf8 variant?
Thanks,
James
From | Date | Subject | |
---|---|---|---|
Next Message | David Fetter | 2020-03-08 02:45:05 | Re: range_agg |
Previous Message | Tom Lane | 2020-03-08 02:31:17 | Re: Allow to_date() and to_timestamp() to accept localized names |