@@ -4651,14 +4651,14 @@ conninfo_uri_parse_options(PQconninfoOption *options, const char *uri,
46514651if (!* p )
46524652{
46534653printfPQExpBuffer (errorMessage ,
4654- libpq_gettext ("end of string reached when looking for matching']' in IPv6 host address in URI:%s \n" ),
4654+ libpq_gettext ("end of string reached when looking for matching\"]\" in IPv6 host address in URI:\"%s\" \n" ),
46554655uri );
46564656gotocleanup ;
46574657}
46584658if (p == host )
46594659{
46604660printfPQExpBuffer (errorMessage ,
4661- libpq_gettext ("IPv6 host address may not be empty in URI:%s \n" ),
4661+ libpq_gettext ("IPv6 host address may not be empty in URI:\"%s\" \n" ),
46624662uri );
46634663gotocleanup ;
46644664}
@@ -4673,7 +4673,7 @@ conninfo_uri_parse_options(PQconninfoOption *options, const char *uri,
46734673if (* p && * p != ':' && * p != '/' && * p != '?' )
46744674{
46754675printfPQExpBuffer (errorMessage ,
4676- libpq_gettext ("unexpected'%c' at position %d in URI (expecting ':' or'/' ):%s \n" ),
4676+ libpq_gettext ("unexpectedcharacter \"%c\" at position %d in URI (expected \":\" or\"/\" ):\"%s\" \n" ),
46774677* p , (int ) (p - buf + 1 ),uri );
46784678gotocleanup ;
46794679}
@@ -4787,7 +4787,7 @@ conninfo_uri_parse_params(char *params,
47874787if (value != NULL )
47884788{
47894789printfPQExpBuffer (errorMessage ,
4790- libpq_gettext ("extra key/value separator'=' in URI query parameter:%s \n" ),
4790+ libpq_gettext ("extra key/value separator\"=\" in URI query parameter:\"%s\" \n" ),
47914791params );
47924792return false;
47934793}
@@ -4807,7 +4807,7 @@ conninfo_uri_parse_params(char *params,
48074807if (value == NULL )
48084808{
48094809printfPQExpBuffer (errorMessage ,
4810- libpq_gettext ("missing key/value separator'=' in URI query parameter:%s \n" ),
4810+ libpq_gettext ("missing key/value separator\"=\" in URI query parameter:\"%s\" \n" ),
48114811params );
48124812return false;
48134813}
@@ -4878,7 +4878,7 @@ conninfo_uri_parse_params(char *params,
48784878
48794879printfPQExpBuffer (errorMessage ,
48804880libpq_gettext (
4881- "invalid URI query parameter \"%s\"\n" ),
4881+ "invalid URI query parameter: \"%s\"\n" ),
48824882keyword );
48834883return false;
48844884}
@@ -4943,7 +4943,7 @@ conninfo_uri_decode(const char *str, PQExpBuffer errorMessage)
49434943if (!(get_hexdigit (* q ++ ,& hi )&& get_hexdigit (* q ++ ,& lo )))
49444944{
49454945printfPQExpBuffer (errorMessage ,
4946- libpq_gettext ("invalid percent-encoded token:%s \n" ),
4946+ libpq_gettext ("invalid percent-encoded token:\"%s\" \n" ),
49474947str );
49484948free (buf );
49494949return NULL ;
@@ -4953,7 +4953,7 @@ conninfo_uri_decode(const char *str, PQExpBuffer errorMessage)
49534953if (c == 0 )
49544954{
49554955printfPQExpBuffer (errorMessage ,
4956- libpq_gettext ("forbidden value %%00 in percent-encoded value:%s \n" ),
4956+ libpq_gettext ("forbidden value %%00 in percent-encoded value:\"%s\" \n" ),
49574957str );
49584958free (buf );
49594959return NULL ;