Patch for BUG #6480, psql incorrect indent for inherited tables names with UTF-8 NLS
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
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