pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: im-scooter@yandex.ru
Subject: BUG #16207: localization functions upper() and lower() does not work for text returned by convert_from()
Date: Wed, 15 Jan 2020 15:41:41 +0000
Message-ID: <16207-5e69d1fb3d4035f2@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      16207
Logged by:          toha.bakanovsky
Email address:      im-scooter@yandex.ru
PostgreSQL version: 12.0
Operating system:   Ubuntu 16.04.11 64-bit
Description:        

Localization functions upper() and lower() does not work for text returned
by convert_from()  for cyrillic symbols.
select upper(convert_from(convert_to('абв', 'utf8'), 'utf8')) =
upper('абв'); -- return false
select upper(convert_from('абв'::bytea, 'utf8')), upper('абв'); -- return
false

hexdecimal presentation of   text is identical 
select convert_to(convert_from('абв'::bytea, 'utf8'), 'utf8') =
convert_to('абв', 'utf-8'); -- returns true

SHOW lc_ctype; -- -- "en_US.UTF-8"

On Postgresql 10.0 it works fine.



view thread (2+ messages)  latest in thread

Message-ID: <16207-5e69d1fb3d4035f2@postgresql.org>
Permalink:  ../16207-5e69d1fb3d4035f2@postgresql.org/
Also on:    postgresql.org/message-id/16207-5e69d1fb3d4035f2@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: noreply@postgresql.org, im-scooter@yandex.ru
  Subject: Re: BUG #16207: localization functions upper() and lower() does not work for text returned by convert_from()
  In-Reply-To: <16207-5e69d1fb3d4035f2@postgresql.org>
  References: <16207-5e69d1fb3d4035f2@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