Patch for BUG #6480, psql incorrect indent for inherited tables names with UTF-8 NLS

Started by Sergey Burladyanalmost 14 years ago3 messages
#1Sergey Burladyan
eshkinkot@gmail.com
1 attachment(s)

See http://archives.postgresql.org/pgsql-bugs/2012-02/msg00164.php

This need function for count characters, not bytes. I find this pg_wcswidth but
it is not used anywhere and broken. So, I fix it and also change it prototype
for remove type casting.

PS: Please help, next week release will be with Russian translation again (thank you,
Alexander!) and this tiny bug is slightly annoying.

Attachments:

psql-NLS-text-width.patchtext/x-diffDownload
#2Alvaro Herrera
alvherre@commandprompt.com
In reply to: Sergey Burladyan (#1)
Re: Patch for BUG #6480, psql incorrect indent for inherited tables names with UTF-8 NLS

Excerpts from Sergey Burladyan's message of vie feb 24 19:43:10 -0300 2012:

See http://archives.postgresql.org/pgsql-bugs/2012-02/msg00164.php

This need function for count characters, not bytes. I find this pg_wcswidth but
it is not used anywhere and broken. So, I fix it and also change it prototype
for remove type casting.

PS: Please help, next week release will be with Russian translation again (thank you,
Alexander!) and this tiny bug is slightly annoying.

I'm sorry, but the releases are already tagged :-( So they will contain
the buggy output for a while yet.

--
Álvaro Herrera <alvherre@commandprompt.com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

#3Sergey Burladyan
eshkinkot@gmail.com
In reply to: Alvaro Herrera (#2)
Re: Patch for BUG #6480, psql incorrect indent for inherited tables names with UTF-8 NLS

Alvaro Herrera <alvherre@commandprompt.com> writes:

I'm sorry, but the releases are already tagged :-( So they will contain
the buggy output for a while yet.

Ah, I see, ok, wait next! :)

--
Sergey Burladyan