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 /g10/card-util.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 'g10/card-util.c')
-rw-r--r-- | g10/card-util.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/g10/card-util.c b/g10/card-util.c index 14268dfeb..533489cd9 100644 --- a/g10/card-util.c +++ b/g10/card-util.c @@ -794,7 +794,7 @@ get_data_from_file (const char *fname, size_t maxlen, char **r_buffer) #endif if (!fp) { - tty_printf (_("can't open `%s': %s\n"), fname, strerror (errno)); + tty_printf (_("can't open '%s': %s\n"), fname, strerror (errno)); return -1; } @@ -813,7 +813,7 @@ get_data_from_file (const char *fname, size_t maxlen, char **r_buffer) es_fclose (fp); if (n < 0) { - tty_printf (_("error reading `%s': %s\n"), fname, strerror (errno)); + tty_printf (_("error reading '%s': %s\n"), fname, strerror (errno)); xfree (data); return -1; } @@ -840,13 +840,13 @@ put_data_to_file (const char *fname, const void *buffer, size_t length) #endif if (!fp) { - tty_printf (_("can't create `%s': %s\n"), fname, strerror (errno)); + tty_printf (_("can't create '%s': %s\n"), fname, strerror (errno)); return -1; } if (length && es_fwrite (buffer, length, 1, fp) != 1) { - tty_printf (_("error writing `%s': %s\n"), fname, strerror (errno)); + tty_printf (_("error writing '%s': %s\n"), fname, strerror (errno)); es_fclose (fp); return -1; } @@ -1403,7 +1403,7 @@ generate_card_keys (ctrl_t ctrl) { tty_printf ("\n"); tty_printf (_("Please note that the factory settings of the PINs are\n" - " PIN = `%s' Admin PIN = `%s'\n" + " PIN = '%s' Admin PIN = '%s'\n" "You should change them using the command --change-pin\n"), "123456", "12345678"); tty_printf ("\n"); |