mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-02-23 19:39:53 +08:00
Fix pg_get_encoding_from_locale() function call parameters to match
prototype for cases where there is no multi-language support.
This commit is contained in:
parent
b186523fd9
commit
2432d10bf2
@ -343,14 +343,14 @@ pg_get_encoding_from_locale(const char *ctype, bool write_message)
|
||||
#else /* (HAVE_LANGINFO_H && CODESET) || WIN32 */
|
||||
|
||||
/*
|
||||
* stub if no platform support
|
||||
* stub if no multi-language platform support
|
||||
*
|
||||
* Note: we could return -1 here, but that would have the effect of
|
||||
* forcing users to specify an encoding to initdb on such platforms.
|
||||
* It seems better to silently default to SQL_ASCII.
|
||||
*/
|
||||
int
|
||||
pg_get_encoding_from_locale(const char *ctype)
|
||||
pg_get_encoding_from_locale(const char *ctype, bool write_message)
|
||||
{
|
||||
return PG_SQL_ASCII;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user