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

Sergey Burladyan <eshkinkot@gmail.com>

From: Sergey Burladyan <eshkinkot@gmail.com>
To: pgsql-hackers@postgresql.org
Date: 2012-02-24T22:43:10Z
Lists: pgsql-hackers

Attachments

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.