BUG #19539: psql 17.6 on Windows 11 prints random garbage characters in Russian localized output of \d

From: PG Bug reporting form <noreply(at)postgresql(dot)org>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Cc: adyakovam(at)gmail(dot)com
Subject: BUG #19539: psql 17.6 on Windows 11 prints random garbage characters in Russian localized output of \d
Date: 2026-06-29 14:55:10
Message-ID: 19539-938dea64f871c379@postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 19539
Logged by: Maria Adyakova
Email address: adyakovam(at)gmail(dot)com
PostgreSQL version: 17.6
Operating system: Windows 11
Description:

Environment

PostgreSQL: 17.6
psql: 17.6
Windows 11
Official EnterpriseDB installer
UTF-8 console (code page 65001)
server_encoding = UTF8
client_encoding = UTF8

Description

When running \d <table> in Russian localization, the output sometimes
contains random garbage Unicode characters immediately after the localized
header "По умолчанию".

Example:

Таблица "public.articles"
Столбец | Тип | Правило сортировки | Допустимость NULL | По умолчанию
⫐鄢ʧ

The garbage characters change every execution.

Switching the locale to English:
set LANG=C

completely eliminates the problem.

The issue reproduces even when starting psql with:
psql -X
so it does not appear to be related to user configuration.

Expected behavior:
No extra characters after the localized header.

Actual behavior:
Random Unicode garbage appears after "По умолчанию" on every invocation.

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2026-06-29 15:04:41 Re: BUG #19524: NaN handling in btree_gist's float4/float8 opclasses
Previous Message Tom Lane 2026-06-29 13:55:05 Re: BUG #19538: ALTER SYSTEM adds extra quotes