| From: | Japin Li <japinli(at)hotmail(dot)com> |
|---|---|
| To: | "pgsql-hackers(at)lists(dot)postgresql(dot)org" <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | Remove INT64_FORMAT in translatable strings |
| Date: | 2022-03-18 15:49:14 |
| Message-ID: | MEYP282MB16694F7CC1B119B4ECDD8CBEB6139@MEYP282MB1669.AUSP282.PROD.OUTLOOK.COM |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hi,
I found the following lines in pg_backup_tar.c.
if (len != th->fileLen)
{
char buf1[32],
buf2[32];
snprintf(buf1, sizeof(buf1), INT64_FORMAT, (int64) len);
snprintf(buf2, sizeof(buf2), INT64_FORMAT, (int64) th->fileLen);
fatal("actual file length (%s) does not match expected (%s)",
buf1, buf2);
}
we can rely on %lld/%llu and we decided to use them in translatable strings.
See 6a1cd8b.
However, I am not sure how to update the *.po files under the pg_dump/po
directory. Any suggestions?
--
Regrads,
Japin Li.
ChengDu WenWu Information Technology Co.,Ltd.
| Attachment | Content-Type | Size |
|---|---|---|
| v1-0001-Remove-use-of-U-INT64_FORMAT-in-some-translatable.patch | text/x-patch | 3.1 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Daniel Gustafsson | 2022-03-18 16:03:39 | Re: On login trigger: take three |
| Previous Message | Pavel Borisov | 2022-03-18 15:43:47 | Probable CF bot degradation |