@@ -1651,7 +1651,7 @@ setup_collation(void)
16511651 if (len == 0 || localebuf [len - 1 ] != '\n' )
16521652 {
16531653 if (debug )
1654- fprintf (stderr , _ ("%s: locale name too long, skipped: %s \n" ),
1654+ fprintf (stderr , _ ("%s: locale name too long, skipped: \"%s\" \n" ),
16551655 progname , localebuf );
16561656 continue ;
16571657 }
@@ -1676,7 +1676,7 @@ setup_collation(void)
16761676 if (skip )
16771677 {
16781678 if (debug )
1679- fprintf (stderr , _ ("%s: locale name has non-ASCII characters, skipped: %s \n" ),
1679+ fprintf (stderr , _ ("%s: locale name has non-ASCII characters, skipped: \"%s\" \n" ),
16801680 progname , localebuf );
16811681 continue ;
16821682 }
@@ -2971,7 +2971,7 @@ main(int argc, char *argv[])
29712971 strcmp (lc_ctype , lc_numeric ) == 0 &&
29722972 strcmp (lc_ctype , lc_monetary ) == 0 &&
29732973 strcmp (lc_ctype , lc_messages ) == 0 )
2974- printf (_ ("The database cluster will be initialized with locale %s .\n" ), lc_ctype );
2974+ printf (_ ("The database cluster will be initialized with locale \"%s\" .\n" ), lc_ctype );
29752975 else
29762976 {
29772977 printf (_ ("The database cluster will be initialized with locales\n"
@@ -2998,7 +2998,7 @@ main(int argc, char *argv[])
29982998 if (ctype_enc == -1 )
29992999 {
30003000 /* Couldn't recognize the locale's codeset */
3001- fprintf (stderr , _ ("%s: could not find suitable encoding for locale %s \n" ),
3001+ fprintf (stderr , _ ("%s: could not find suitable encoding for locale \"%s\" \n" ),
30023002 progname , lc_ctype );
30033003 fprintf (stderr , _ ("Rerun %s with the -E option.\n" ), progname );
30043004 fprintf (stderr , _ ("Try \"%s --help\" for more information.\n" ),
@@ -3013,18 +3013,18 @@ main(int argc, char *argv[])
30133013 * UTF-8.
30143014 */
30153015#ifdef WIN32
3016- printf (_ ("Encoding %s implied by locale is not allowed as a server-side encoding.\n"
3017- "The default database encoding will be set to %s instead.\n" ),
3016+ printf (_ ("Encoding \"%s\" implied by locale is not allowed as a server-side encoding.\n"
3017+ "The default database encoding will be set to \"%s\" instead.\n" ),
30183018 pg_encoding_to_char (ctype_enc ),
30193019 pg_encoding_to_char (PG_UTF8 ));
30203020 ctype_enc = PG_UTF8 ;
30213021 encodingid = encodingid_to_string (ctype_enc );
30223022#else
30233023 fprintf (stderr ,
3024- _ ("%s: locale %s requires unsupported encoding %s \n" ),
3024+ _ ("%s: locale \"%s\" requires unsupported encoding \"%s\" \n" ),
30253025 progname , lc_ctype , pg_encoding_to_char (ctype_enc ));
30263026 fprintf (stderr ,
3027- _ ("Encoding %s is not allowed as a server-side encoding.\n"
3027+ _ ("Encoding \"%s\" is not allowed as a server-side encoding.\n"
30283028 "Rerun %s with a different locale selection.\n" ),
30293029 pg_encoding_to_char (ctype_enc ), progname );
30303030 exit (1 );
@@ -3033,7 +3033,7 @@ main(int argc, char *argv[])
30333033 else
30343034 {
30353035 encodingid = encodingid_to_string (ctype_enc );
3036- printf (_ ("The default database encoding has accordingly been set to %s .\n" ),
3036+ printf (_ ("The default database encoding has accordingly been set to \"%s\" .\n" ),
30373037 pg_encoding_to_char (ctype_enc ));
30383038 }
30393039 }
@@ -3050,7 +3050,7 @@ main(int argc, char *argv[])
30503050 default_text_search_config = find_matching_ts_config (lc_ctype );
30513051 if (default_text_search_config == NULL )
30523052 {
3053- printf (_ ("%s: could not find suitable text search configuration for locale %s \n" ),
3053+ printf (_ ("%s: could not find suitable text search configuration for locale \"%s\" \n" ),
30543054 progname , lc_ctype );
30553055 default_text_search_config = "simple" ;
30563056 }
@@ -3061,12 +3061,12 @@ main(int argc, char *argv[])
30613061
30623062 if (checkmatch == NULL )
30633063 {
3064- printf (_ ("%s: warning: suitable text search configuration for locale %s is unknown\n" ),
3064+ printf (_ ("%s: warning: suitable text search configuration for locale \"%s\" is unknown\n" ),
30653065 progname , lc_ctype );
30663066 }
30673067 else if (strcmp (checkmatch , default_text_search_config ) != 0 )
30683068 {
3069- printf (_ ("%s: warning: specified text search configuration \"%s\" might not match locale %s \n" ),
3069+ printf (_ ("%s: warning: specified text search configuration \"%s\" might not match locale \"%s\" \n" ),
30703070 progname , default_text_search_config , lc_ctype );
30713071 }
30723072 }
0 commit comments