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 /tools/gpgparsemail.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 'tools/gpgparsemail.c')
-rw-r--r-- | tools/gpgparsemail.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/gpgparsemail.c b/tools/gpgparsemail.c index 6265efc93..a8b3dc7a2 100644 --- a/tools/gpgparsemail.c +++ b/tools/gpgparsemail.c @@ -199,7 +199,7 @@ run_gnupg (int smime, int sig_fd, int data_fd, int *close_list) /* Send stdout to the bit bucket. */ fd = open ("/dev/null", O_WRONLY); if (fd == -1) - die ("can't open `/dev/null': %s", strerror (errno)); + die ("can't open '/dev/null': %s", strerror (errno)); if (fd != 1) { if (dup2 (fd, 1) == -1) @@ -517,7 +517,7 @@ message_cb (void *opaque, rfc822parse_event_t event, rfc822parse_t msg) strcpy (stpcpy (stpcpy (buf, s1), "/"), s2); assert (info->signing_protocol); if (strcmp (buf, info->signing_protocol)) - err ("invalid %s structure; expected `%s', found `%s'", + err ("invalid %s structure; expected '%s', found '%s'", info->is_smime? "S/MIME":"PGP/MIME", info->signing_protocol, buf); else @@ -654,7 +654,7 @@ parse_message (FILE *fp) /* Delay hashing of the CR/LF because the last line ending belongs to the next boundary. */ if (debug) - printf ("# hashing %s`%s'\n", info.hashing==2?"CR,LF+":"", line); + printf ("# hashing %s'%s'\n", info.hashing==2?"CR,LF+":"", line); if (opt_crypto) { if (info.hashing == 2) @@ -791,7 +791,7 @@ main (int argc, char **argv) { FILE *fp = fopen (*argv, "rb"); if (!fp) - die ("can't open `%s': %s", *argv, strerror (errno)); + die ("can't open '%s': %s", *argv, strerror (errno)); parse_message (fp); fclose (fp); } |