PostgreSQL Bugs

Collected from the PG bugs email list.

Bug ID16207
PG Version12.0
OSUbuntu 16.04.11 64-bit
Opened2020-01-15 15:41:41+00
Reported bytoha.bakanovsky
StatusNew

Body of first available message related to this bug follows.

The following bug has been logged on the website:

Bug reference:      16207
Logged by:          toha.bakanovsky
Email address:      (redacted)
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.

Messages

DateAuthorSubject
2020-01-15 15:41:41+00PG Bug reporting formBUG #16207: localization functions upper() and lower() does not work for text returned by convert_from()
2020-01-15 16:30:54+00Tom LaneRe: BUG #16207: localization functions upper() and lower() does not work for text returned by convert_from()