git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f376996)
libpq: Remove a gettext marker
2024年6月12日 06:43:43 +0000 (08:43 +0200)
2024年6月12日 06:43:43 +0000 (08:43 +0200)
This one error message is just a workaround for a missing OpenSSL
error string. But OpenSSL does not have gettext support, so we don't
need to provide it in our workaround either. That way, the
user-facing behavior is consistent whether the user has a fixed
OpenSSL or not.


diff --git a/src/interfaces/libpq/fe-secure-openssl.c b/src/interfaces/libpq/fe-secure-openssl.c
index bf9dfbf918f16f5179160129f5779436b2c4f431..5c867106fb0d2200760c83cf41308ce1662da7db 100644 (file)
--- a/src/interfaces/libpq/fe-secure-openssl.c
+++ b/src/interfaces/libpq/fe-secure-openssl.c
@@ -1753,7 +1753,7 @@ SSLerrmessage(unsigned long ecode)
if (ERR_GET_LIB(ecode) == ERR_LIB_SSL &&
ERR_GET_REASON(ecode) == SSL_AD_REASON_OFFSET + SSL_AD_NO_APPLICATION_PROTOCOL)
{
- snprintf(errbuf, SSL_ERR_LEN, libpq_gettext("no application protocol"));
+ snprintf(errbuf, SSL_ERR_LEN, "no application protocol");
return errbuf;
}
#endif
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /