@@ -1651,7 +1651,7 @@ setup_collation(void)
1651
1651
if (len == 0 || localebuf [len - 1 ] != '\n' )
1652
1652
{
1653
1653
if (debug )
1654
- fprintf (stderr , _ ("%s: locale name too long, skipped: %s \n" ),
1654
+ fprintf (stderr , _ ("%s: locale name too long, skipped: \"%s\" \n" ),
1655
1655
progname , localebuf );
1656
1656
continue ;
1657
1657
}
@@ -1676,7 +1676,7 @@ setup_collation(void)
1676
1676
if (skip )
1677
1677
{
1678
1678
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" ),
1680
1680
progname , localebuf );
1681
1681
continue ;
1682
1682
}
@@ -2971,7 +2971,7 @@ main(int argc, char *argv[])
2971
2971
strcmp (lc_ctype , lc_numeric ) == 0 &&
2972
2972
strcmp (lc_ctype , lc_monetary ) == 0 &&
2973
2973
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 );
2975
2975
else
2976
2976
{
2977
2977
printf (_ ("The database cluster will be initialized with locales\n"
@@ -2998,7 +2998,7 @@ main(int argc, char *argv[])
2998
2998
if (ctype_enc == -1 )
2999
2999
{
3000
3000
/* 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" ),
3002
3002
progname , lc_ctype );
3003
3003
fprintf (stderr , _ ("Rerun %s with the -E option.\n" ), progname );
3004
3004
fprintf (stderr , _ ("Try \"%s --help\" for more information.\n" ),
@@ -3013,18 +3013,18 @@ main(int argc, char *argv[])
3013
3013
* UTF-8.
3014
3014
*/
3015
3015
#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" ),
3018
3018
pg_encoding_to_char (ctype_enc ),
3019
3019
pg_encoding_to_char (PG_UTF8 ));
3020
3020
ctype_enc = PG_UTF8 ;
3021
3021
encodingid = encodingid_to_string (ctype_enc );
3022
3022
#else
3023
3023
fprintf (stderr ,
3024
- _ ("%s: locale %s requires unsupported encoding %s \n" ),
3024
+ _ ("%s: locale \"%s\" requires unsupported encoding \"%s\" \n" ),
3025
3025
progname , lc_ctype , pg_encoding_to_char (ctype_enc ));
3026
3026
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"
3028
3028
"Rerun %s with a different locale selection.\n" ),
3029
3029
pg_encoding_to_char (ctype_enc ), progname );
3030
3030
exit (1 );
@@ -3033,7 +3033,7 @@ main(int argc, char *argv[])
3033
3033
else
3034
3034
{
3035
3035
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" ),
3037
3037
pg_encoding_to_char (ctype_enc ));
3038
3038
}
3039
3039
}
@@ -3050,7 +3050,7 @@ main(int argc, char *argv[])
3050
3050
default_text_search_config = find_matching_ts_config (lc_ctype );
3051
3051
if (default_text_search_config == NULL )
3052
3052
{
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" ),
3054
3054
progname , lc_ctype );
3055
3055
default_text_search_config = "simple" ;
3056
3056
}
@@ -3061,12 +3061,12 @@ main(int argc, char *argv[])
3061
3061
3062
3062
if (checkmatch == NULL )
3063
3063
{
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" ),
3065
3065
progname , lc_ctype );
3066
3066
}
3067
3067
else if (strcmp (checkmatch , default_text_search_config ) != 0 )
3068
3068
{
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" ),
3070
3070
progname , default_text_search_config , lc_ctype );
3071
3071
}
3072
3072
}
0 commit comments