public inbox for [email protected]
help / color / mirror / Atom feedBUG #19539: psql 17.6 on Windows 11 prints random garbage characters in Russian localized output of \d
2+ messages / 2 participants
[nested] [flat]
* BUG #19539: psql 17.6 on Windows 11 prints random garbage characters in Russian localized output of \d
@ 2026-06-29 14:55 PG Bug reporting form <[email protected]>
2026-07-01 02:36 ` Re: BUG #19539: psql 17.6 on Windows 11 prints random garbage characters in Russian localized output of \d Thomas Munro <[email protected]>
0 siblings, 1 reply; 2+ messages in thread
From: PG Bug reporting form @ 2026-06-29 14:55 UTC (permalink / raw)
To: [email protected]; +Cc: [email protected]
The following bug has been logged on the website:
Bug reference: 19539
Logged by: Maria Adyakova
Email address: [email protected]
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.
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: BUG #19539: psql 17.6 on Windows 11 prints random garbage characters in Russian localized output of \d
2026-06-29 14:55 BUG #19539: psql 17.6 on Windows 11 prints random garbage characters in Russian localized output of \d PG Bug reporting form <[email protected]>
@ 2026-07-01 02:36 ` Thomas Munro <[email protected]>
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Munro @ 2026-07-01 02:36 UTC (permalink / raw)
To: [email protected]; [email protected]; +Cc: Bryan Green <[email protected]>
On Tue, Jun 30, 2026 at 3:12 AM PG Bug reporting form
<[email protected]> wrote:
> 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.
Do any other languages show clues? Could you please try Ukrainian,
Greek, Japanese?
#: describe.c:2070 describe.c:4572
msgid "Default"
msgstr "По умолчанию"
headers[cols++] = gettext_noop("Default");
That is then fed through pg_wcsformat(). I wonder if that could be
confused about encodings and NUL terminators or something, but I don't
have a specific theory. Could you please locate the relevant psql.mo
file and share it, so we can check it contains the expected byte
sequence?
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2026-07-01 02:36 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2026-06-29 14:55 BUG #19539: psql 17.6 on Windows 11 prints random garbage characters in Russian localized output of \d PG Bug reporting form <[email protected]>
2026-07-01 02:36 ` Thomas Munro <[email protected]>
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox