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/openfile.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/openfile.c')
-rw-r--r-- | g10/openfile.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/g10/openfile.c b/g10/openfile.c index 114e0add9..704dcff5b 100644 --- a/g10/openfile.c +++ b/g10/openfile.c @@ -82,7 +82,7 @@ overwrite_filep( const char *fname ) if (opt.answer_no || opt.batch) return 0; /* Do not overwrite. */ - tty_printf (_("File `%s' exists. "), fname); + tty_printf (_("File '%s' exists. "), fname); if (cpr_enabled ()) tty_printf ("\n"); if (cpr_get_answer_is_yes ("openfile.overwrite.okay", @@ -194,12 +194,12 @@ open_outfile (int inp_fd, const char *iname, int mode, iobuf_t *a) { rc = gpg_error_from_syserror (); snprintf (xname, sizeof xname, "[fd %d]", inp_fd); - log_error (_("can't open `%s': %s\n"), xname, gpg_strerror (rc)); + log_error (_("can't open '%s': %s\n"), xname, gpg_strerror (rc)); } else if (opt.verbose) { snprintf (xname, sizeof xname, "[fd %d]", inp_fd); - log_info (_("writing to `%s'\n"), xname); + log_info (_("writing to '%s'\n"), xname); } } else if (iobuf_is_pipe_filename (iname) && !opt.outfile) @@ -208,7 +208,7 @@ open_outfile (int inp_fd, const char *iname, int mode, iobuf_t *a) if ( !*a ) { rc = gpg_error_from_syserror (); - log_error (_("can't open `%s': %s\n"), "[stdout]", strerror(errno) ); + log_error (_("can't open '%s': %s\n"), "[stdout]", strerror(errno) ); } else if ( opt.verbose ) log_info (_("writing to stdout\n")); @@ -287,10 +287,10 @@ open_outfile (int inp_fd, const char *iname, int mode, iobuf_t *a) if (!*a) { rc = gpg_error_from_syserror (); - log_error(_("can't create `%s': %s\n"), name, strerror(errno) ); + log_error(_("can't create '%s': %s\n"), name, strerror(errno) ); } else if( opt.verbose ) - log_info (_("writing to `%s'\n"), name ); + log_info (_("writing to '%s'\n"), name ); } xfree(buf); } @@ -328,7 +328,7 @@ open_sigfile( const char *iname, progress_filter_context_t *pfx ) gpg_err_set_errno (EPERM); } if( a && opt.verbose ) - log_info(_("assuming signed data in `%s'\n"), buf ); + log_info(_("assuming signed data in '%s'\n"), buf ); if (a && pfx) handle_progress (pfx, a, buf); xfree(buf); @@ -365,7 +365,7 @@ copy_options_file( const char *destdir ) gpg_err_set_errno (EPERM); } if( !src ) { - log_info (_("can't open `%s': %s\n"), fname, strerror(errno) ); + log_info (_("can't open '%s': %s\n"), fname, strerror(errno) ); xfree(fname); return; } @@ -380,7 +380,7 @@ copy_options_file( const char *destdir ) dst = fopen( fname, "w" ); umask(oldmask); if( !dst ) { - log_info (_("can't create `%s': %s\n"), fname, strerror(errno) ); + log_info (_("can't create '%s': %s\n"), fname, strerror(errno) ); fclose( src ); xfree(fname); return; @@ -407,9 +407,9 @@ copy_options_file( const char *destdir ) } fclose( dst ); fclose( src ); - log_info(_("new configuration file `%s' created\n"), fname ); + log_info(_("new configuration file '%s' created\n"), fname ); if (any_option) - log_info (_("WARNING: options in `%s'" + log_info (_("WARNING: options in '%s'" " are not yet active during this run\n"), fname); xfree(fname); @@ -441,10 +441,10 @@ try_make_homedir (const char *fname) ) { if (gnupg_mkdir (fname, "-rwx")) - log_fatal ( _("can't create directory `%s': %s\n"), + log_fatal ( _("can't create directory '%s': %s\n"), fname, strerror(errno) ); else if (!opt.quiet ) - log_info ( _("directory `%s' created\n"), fname ); + log_info ( _("directory '%s' created\n"), fname ); copy_options_file( fname ); } } |