diff options
author | Werner Koch <[email protected]> | 2012-06-05 17:29:22 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2012-06-05 17:29:22 +0000 |
commit | 096e7457ec636bcfcf128678660eb2f2e19f113a (patch) | |
tree | b54df55112f195895d6d952ce3cfb3f4c98e7683 /common/http.c | |
parent | Print the hash algorithm in colon mode key listing. (diff) | |
download | gnupg-096e7457ec636bcfcf128678660eb2f2e19f113a.tar.gz gnupg-096e7457ec636bcfcf128678660eb2f2e19f113a.zip |
Change all quotes in strings and comments to the new GNU standard.
The asymmetric quotes used by GNU in the past (`...') don't render
nicely on modern systems. We now use two \x27 characters ('...').
The proper solution would be to use the correct Unicode symmetric
quotes here. However this has the disadvantage that the system
requires Unicode support. We don't want that today. If Unicode is
available a generated po file can be used to output proper quotes. A
simple sed script like the one used for en@quote is sufficient to
change them.
The changes have been done by applying
sed -i "s/\`\([^'\`]*\)'/'\1'/g"
to most files and fixing obvious problems by hand. The msgid strings in
the po files were fixed with a similar command.
Diffstat (limited to 'common/http.c')
-rw-r--r-- | common/http.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/common/http.c b/common/http.c index 374983288..c4e6ca99d 100644 --- a/common/http.c +++ b/common/http.c @@ -1538,7 +1538,7 @@ parse_response (http_t hd) return GPG_ERR_EOF; if ((hd->flags & HTTP_FLAG_LOG_RESP)) - log_info ("RESP: `%.*s'\n", + log_info ("RESP: '%.*s'\n", (int)strlen(line)-(*line&&line[1]?2:0),line); } while (!*line); @@ -1584,7 +1584,7 @@ parse_response (http_t hd) if ((*line == '\r' && line[1] == '\n') || *line == '\n') *line = 0; if ((hd->flags & HTTP_FLAG_LOG_RESP)) - log_info ("RESP: `%.*s'\n", + log_info ("RESP: '%.*s'\n", (int)strlen(line)-(*line&&line[1]?2:0),line); if (*line) { @@ -1834,7 +1834,7 @@ connect_server (const char *server, unsigned short port, addr.sin_family = host->h_addrtype; if (addr.sin_family != AF_INET) { - log_error ("unknown address family for `%s'\n", + log_error ("unknown address family for '%s'\n", serverlist[srv].target); xfree (serverlist); return -1; @@ -1842,7 +1842,7 @@ connect_server (const char *server, unsigned short port, addr.sin_port = htons (serverlist[srv].port); if (host->h_length != 4) { - log_error ("illegal address length for `%s'\n", + log_error ("illegal address length for '%s'\n", serverlist[srv].target); xfree (serverlist); return -1; @@ -1868,12 +1868,12 @@ connect_server (const char *server, unsigned short port, if (!connected) { #ifdef HAVE_W32_SYSTEM - log_error ("can't connect to `%s': %s%sec=%d\n", + log_error ("can't connect to '%s': %s%sec=%d\n", server, hostfound? "":_("host not found"), hostfound? "":" - ", (int)WSAGetLastError()); #else - log_error ("can't connect to `%s': %s\n", + log_error ("can't connect to '%s': %s\n", server, hostfound? strerror (last_errno):"host not found"); #endif @@ -2166,7 +2166,7 @@ main (int argc, char **argv) rc = http_parse_uri (&uri, *argv, 1); if (rc) { - log_error ("`%s': %s\n", *argv, gpg_strerror (rc)); + log_error ("'%s': %s\n", *argv, gpg_strerror (rc)); return 1; } @@ -2208,7 +2208,7 @@ main (int argc, char **argv) rc = http_open_document (&hd, *argv, NULL, 0, NULL, tls_session, NULL, NULL); if (rc) { - log_error ("can't get `%s': %s\n", *argv, gpg_strerror (rc)); + log_error ("can't get '%s': %s\n", *argv, gpg_strerror (rc)); return 1; } log_info ("open_http_document succeeded; status=%u\n", @@ -2223,7 +2223,7 @@ main (int argc, char **argv) break; case 301: case 302: - printf ("Redirected to `%s'\n", http_get_header (hd, "Location")); + printf ("Redirected to '%s'\n", http_get_header (hd, "Location")); break; } http_close (hd, 0); |