summaryrefslogtreecommitdiffstats
path: root/tools/gpgsplit.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2012-06-05 19:29:22 +0200
committerWerner Koch <wk@gnupg.org>2012-06-05 19:29:22 +0200
commit096e7457ec636bcfcf128678660eb2f2e19f113a (patch)
treeb54df55112f195895d6d952ce3cfb3f4c98e7683 /tools/gpgsplit.c
parentPrint the hash algorithm in colon mode key listing. (diff)
downloadgnupg2-096e7457ec636bcfcf128678660eb2f2e19f113a.tar.xz
gnupg2-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/gpgsplit.c')
-rw-r--r--tools/gpgsplit.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/tools/gpgsplit.c b/tools/gpgsplit.c
index 3f093c360..1c1cee45a 100644
--- a/tools/gpgsplit.c
+++ b/tools/gpgsplit.c
@@ -544,11 +544,11 @@ write_part (FILE *fpin, unsigned long pktlen,
else
{
if (opt_verbose)
- log_info ("writing `%s'\n", outname);
+ log_info ("writing '%s'\n", outname);
fpout = fopen (outname, "wb");
if (!fpout)
{
- log_error ("error creating `%s': %s\n", outname, strerror(errno));
+ log_error ("error creating '%s': %s\n", outname, strerror(errno));
/* stop right now, otherwise we would mess up the sequence
of the part numbers */
g10_exit (1);
@@ -747,11 +747,11 @@ write_part (FILE *fpin, unsigned long pktlen,
ready:
if ( !opt_no_split && fclose (fpout) )
- log_error ("error closing `%s': %s\n", outname, strerror (errno));
+ log_error ("error closing '%s': %s\n", outname, strerror (errno));
return 0;
write_error:
- log_error ("error writing `%s': %s\n", outname, strerror (errno));
+ log_error ("error writing '%s': %s\n", outname, strerror (errno));
if (!opt_no_split)
fclose (fpout);
return 2;
@@ -864,7 +864,7 @@ split_packets (const char *fname)
}
else if ( !(fp = fopen (fname,"rb")) )
{
- log_error ("can't open `%s': %s\n", fname, strerror (errno));
+ log_error ("can't open '%s': %s\n", fname, strerror (errno));
return;
}
@@ -873,9 +873,9 @@ split_packets (const char *fname)
if ( rc > 0 )
; /* error already handled */
else if ( ferror (fp) )
- log_error ("error reading `%s': %s\n", fname, strerror (errno));
+ log_error ("error reading '%s': %s\n", fname, strerror (errno));
else
- log_error ("premature EOF while reading `%s'\n", fname );
+ log_error ("premature EOF while reading '%s'\n", fname );
if ( fp != stdin )
fclose (fp);