macro concatenation fools gettext

From: Daniele Varrazzo <daniele(dot)varrazzo(at)gmail(dot)com>
To: pgsql-bugs <pgsql-bugs(at)postgresql(dot)org>
Subject: macro concatenation fools gettext
Date: 2017-08-31 00:41:19
Message-ID: CA+mi_8bCCMTbuJ2TcTHjCKREzFv_AnYDRJyz4y=gDMrPa++ynQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The macro concatenation [1]:

pg_log(PG_DEBUG, "received chunk for file \"%s\", offset "
INT64_FORMAT ", size %d\n",

fools gettext which produces only [2]:

msgid "received chunk for file \"%s\", offset "

the part after the macro is lost and I'm not sure if it will "work" by
returning an half-translated sentence, or not work at all and return
an English sentence, or return only the first part of the sentence, or
explode...

[1] https://github.com/postgres/postgres/blob/21d304df/src/bin/pg_rewind/libpq_fetch.c#L345
[2] https://github.com/postgres/postgres/blob/21d304df/src/bin/pg_rewind/po/fr.po#L334

-- Daniele

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Michael Paquier 2017-08-31 09:01:05 Re: macro concatenation fools gettext
Previous Message Alvaro Herrera 2017-08-30 23:46:28 Re: BUG #14791: Error 42P07 but the relation DOESN'T Exists! Error 42P01