Content-Length: 275925 | pFad | http://github.com/postgrespro/postgres/commit/a0fe90efef91fcd578a85a0f0c5bcab55285b1d7

9E libpq: Add missing gettext markers · postgrespro/postgres@a0fe90e · GitHub
Skip to content

Commit a0fe90e

Browse files
committed
libpq: Add missing gettext markers
Follow-up to 87d2801: That commit restored some lost error messages, but they ended up in a place where xgettext wouldn't find them. Rather than elevating ENCRYPTION_NEGOTIATION_FAILED() to a gettext trigger, it's easiest for now to put in some explicit libpq_gettext() calls in the couple of call sites.
1 parent d112ea4 commit a0fe90e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/interfaces/libpq/fe-connect.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3519,7 +3519,7 @@ PQconnectPoll(PGconn *conn)
35193519
* continue without SSL, we can proceed using this
35203520
* connection. Otherwise return with an error.
35213521
*/
3522-
ENCRYPTION_NEGOTIATION_FAILED("server does not support SSL, but SSL was required");
3522+
ENCRYPTION_NEGOTIATION_FAILED(libpq_gettext("server does not support SSL, but SSL was required"));
35233523
}
35243524
else if (SSLok == 'E')
35253525
{
@@ -3640,7 +3640,7 @@ PQconnectPoll(PGconn *conn)
36403640
* continue without GSS, we can proceed using this
36413641
* connection. Otherwise return with an error.
36423642
*/
3643-
ENCRYPTION_NEGOTIATION_FAILED("server doesn't support GSSAPI encryption, but it was required");
3643+
ENCRYPTION_NEGOTIATION_FAILED(libpq_gettext("server doesn't support GSSAPI encryption, but it was required"));
36443644
}
36453645
else if (gss_ok != 'G')
36463646
{

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/a0fe90efef91fcd578a85a0f0c5bcab55285b1d7

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy