increase message string buffer size of watch command of psql

From: Ioseph Kim <pgsql-kr(at)postgresql(dot)kr>
To: pgsql-hackers(at)postgresql(dot)org
Subject: increase message string buffer size of watch command of psql
Date: 2016-06-12 14:55:32
Message-ID: 20160612145532.GA22965@postgresql.kr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello.
In po.ko (korean message) at psql
#: command.c:2971
#, c-format
msgid "Watch every %lds\t%s"
msgstr "%ld초 간격으로 지켜보기\t%s"

this message string is a cut string, because buffer size is small.
At line 2946 in src/bin/psql/command.c
char title[50];

size of message string for korean is over 50 bytes.
(at least 80 columns terminal for common)

Increase size of this title, please.
50 bytes is so small for multi language.

And. I suggest that date string might be local language,
or current_timestamp string.

Regards, Ioseph.

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Vladimir Borodin 2016-06-12 21:42:19 Re: [PERFORM] 9.4 -> 9.5 regression with queries through pgbouncer on RHEL 6
Previous Message Michael Paquier 2016-06-12 11:51:58 Re: Confusing recovery message when target not hit