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/tdbdump.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/tdbdump.c')
-rw-r--r-- | g10/tdbdump.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/g10/tdbdump.c b/g10/tdbdump.c index 25a916e5b..92d70a734 100644 --- a/g10/tdbdump.c +++ b/g10/tdbdump.c @@ -139,7 +139,7 @@ import_ownertrust( const char *fname ) is_stdin = 1; } else if( !(fp = fopen( fname, "r" )) ) { - log_error ( _("can't open `%s': %s\n"), fname, strerror(errno) ); + log_error ( _("can't open '%s': %s\n"), fname, strerror(errno) ); return; } @@ -147,7 +147,7 @@ import_ownertrust( const char *fname ) { fclose (fp); gpg_err_set_errno (EPERM); - log_error (_("can't open `%s': %s\n"), fname, strerror(errno) ); + log_error (_("can't open '%s': %s\n"), fname, strerror(errno) ); return; } @@ -158,7 +158,7 @@ import_ownertrust( const char *fname ) continue; n = strlen(line); if( line[n-1] != '\n' ) { - log_error (_("error in `%s': %s\n"), fname, _("line too long") ); + log_error (_("error in '%s': %s\n"), fname, _("line too long") ); /* ... or last line does not have a LF */ break; /* can't continue */ } @@ -166,17 +166,17 @@ import_ownertrust( const char *fname ) if( !hexdigitp(p) ) break; if( *p != ':' ) { - log_error (_("error in `%s': %s\n"), fname, _("colon missing") ); + log_error (_("error in '%s': %s\n"), fname, _("colon missing") ); continue; } fprlen = p - line; if( fprlen != 32 && fprlen != 40 ) { - log_error (_("error in `%s': %s\n"), + log_error (_("error in '%s': %s\n"), fname, _("invalid fingerprint") ); continue; } if( sscanf(p, ":%u:", &otrust ) != 1 ) { - log_error (_("error in `%s': %s\n"), + log_error (_("error in '%s': %s\n"), fname, _("ownertrust value missing")); continue; } @@ -213,11 +213,11 @@ import_ownertrust( const char *fname ) any = 1; } else /* error */ - log_error (_("error finding trust record in `%s': %s\n"), + log_error (_("error finding trust record in '%s': %s\n"), fname, g10_errstr(rc)); } if( ferror(fp) ) - log_error ( _("read error in `%s': %s\n"), fname, strerror(errno) ); + log_error ( _("read error in '%s': %s\n"), fname, strerror(errno) ); if( !is_stdin ) fclose(fp); |