From 096e7457ec636bcfcf128678660eb2f2e19f113a Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 5 Jun 2012 19:29:22 +0200 Subject: 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. --- sm/minip12.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'sm/minip12.c') diff --git a/sm/minip12.c b/sm/minip12.c index 7b53a814e..c91ef226a 100644 --- a/sm/minip12.c +++ b/sm/minip12.c @@ -617,7 +617,7 @@ decrypt_block (const void *ciphertext, unsigned char *plaintext, size_t length, } *outptr = 0; jnlib_iconv_close (cd); - log_info ("decryption failed; trying charset `%s'\n", + log_info ("decryption failed; trying charset '%s'\n", charsets[charsetidx]); } memcpy (plaintext, ciphertext, length); @@ -2401,7 +2401,7 @@ p12_build (gcry_mpi_t *kparms, const void *cert, size_t certlen, if (cd == (jnlib_iconv_t)(-1)) { log_error ("can't convert passphrase to" - " requested charset `%s': %s\n", + " requested charset '%s': %s\n", charset, strerror (errno)); gcry_free (pwbuf); goto failure; @@ -2415,7 +2415,7 @@ p12_build (gcry_mpi_t *kparms, const void *cert, size_t certlen, &outptr, &outbytes) == (size_t)-1) { log_error ("error converting passphrase to" - " requested charset `%s': %s\n", + " requested charset '%s': %s\n", charset, strerror (errno)); gcry_free (pwbuf); jnlib_iconv_close (cd); @@ -2532,13 +2532,13 @@ main (int argc, char **argv) fp = fopen (argv[1], "rb"); if (!fp) { - fprintf (stderr, "can't open `%s': %s\n", argv[1], strerror (errno)); + fprintf (stderr, "can't open '%s': %s\n", argv[1], strerror (errno)); return 1; } if (fstat (fileno(fp), &st)) { - fprintf (stderr, "can't stat `%s': %s\n", argv[1], strerror (errno)); + fprintf (stderr, "can't stat '%s': %s\n", argv[1], strerror (errno)); return 1; } @@ -2546,7 +2546,7 @@ main (int argc, char **argv) buf = gcry_malloc (buflen+1); if (!buf || fread (buf, buflen, 1, fp) != 1) { - fprintf (stderr, "error reading `%s': %s\n", argv[1], strerror (errno)); + fprintf (stderr, "error reading '%s': %s\n", argv[1], strerror (errno)); return 1; } fclose (fp); -- cgit v1.2.3