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 /sm/keydb.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 'sm/keydb.c')
-rw-r--r-- | sm/keydb.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sm/keydb.c b/sm/keydb.c index 86301b337..6912b42c6 100644 --- a/sm/keydb.c +++ b/sm/keydb.c @@ -100,7 +100,7 @@ keydb_add_resource (const char *url, int force, int secret, int *auto_created) #if !defined(HAVE_DRIVE_LETTERS) && !defined(__riscos__) else if (strchr (resname, ':')) { - log_error ("invalid key resource URL `%s'\n", url ); + log_error ("invalid key resource URL '%s'\n", url ); rc = gpg_error (GPG_ERR_GENERAL); goto leave; } @@ -147,7 +147,7 @@ keydb_add_resource (const char *url, int force, int secret, int *auto_created) switch (rt) { case KEYDB_RESOURCE_TYPE_NONE: - log_error ("unknown type of key resource `%s'\n", url ); + log_error ("unknown type of key resource '%s'\n", url ); rc = gpg_error (GPG_ERR_GENERAL); goto leave; @@ -184,7 +184,7 @@ keydb_add_resource (const char *url, int force, int secret, int *auto_created) if (!fp) { rc = gpg_error (gpg_err_code_from_errno (errno)); - log_error (_("error creating keybox `%s': %s\n"), + log_error (_("error creating keybox '%s': %s\n"), filename, strerror(errno)); if (errno == ENOENT) log_info (_("you may want to start the gpg-agent first\n")); @@ -192,7 +192,7 @@ keydb_add_resource (const char *url, int force, int secret, int *auto_created) } if (!opt.quiet) - log_info (_("keybox `%s' created\n"), filename); + log_info (_("keybox '%s' created\n"), filename); if (auto_created) *auto_created = 1; } @@ -216,7 +216,7 @@ keydb_add_resource (const char *url, int force, int secret, int *auto_created) all_resources[used_resources].lockhandle = dotlock_create (filename, 0); if (!all_resources[used_resources].lockhandle) - log_fatal ( _("can't create lock for `%s'\n"), filename); + log_fatal ( _("can't create lock for '%s'\n"), filename); /* Do a compress run if needed and the file is not locked. */ if (!dotlock_take (all_resources[used_resources].lockhandle, 0)) @@ -238,7 +238,7 @@ keydb_add_resource (const char *url, int force, int secret, int *auto_created) break; default: - log_error ("resource type of `%s' not supported\n", url); + log_error ("resource type of '%s' not supported\n", url); rc = gpg_error (GPG_ERR_NOT_SUPPORTED); goto leave; } @@ -247,7 +247,7 @@ keydb_add_resource (const char *url, int force, int secret, int *auto_created) leave: if (rc) - log_error ("keyblock resource `%s': %s\n", filename, gpg_strerror(rc)); + log_error ("keyblock resource '%s': %s\n", filename, gpg_strerror(rc)); else if (secret) any_secret = 1; else @@ -1206,7 +1206,7 @@ keydb_clear_some_cert_flags (ctrl_t ctrl, strlist_t names) rc = classify_user_id (sl->d, desc+ndesc, 0); if (rc) { - log_error ("key `%s' not found: %s\n", + log_error ("key '%s' not found: %s\n", sl->d, gpg_strerror (rc)); rc = 0; } |