mirror of
https://github.com/postgres/postgres.git
synced 2025-12-10 14:22:35 +03:00
Make to_char()'s localized month/day names depend on LC_TIME, not LC_MESSAGES.
Euler Taveira de Oliveira
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
*
|
||||
* PostgreSQL locale utilities
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/include/utils/pg_locale.h,v 1.24 2008/01/01 19:45:59 momjian Exp $
|
||||
* $PostgreSQL: pgsql/src/include/utils/pg_locale.h,v 1.25 2008/05/19 18:08:16 tgl Exp $
|
||||
*
|
||||
* Copyright (c) 2002-2008, PostgreSQL Global Development Group
|
||||
*
|
||||
@@ -17,11 +17,19 @@
|
||||
#include "utils/guc.h"
|
||||
|
||||
|
||||
/* GUC settings */
|
||||
extern char *locale_messages;
|
||||
extern char *locale_monetary;
|
||||
extern char *locale_numeric;
|
||||
extern char *locale_time;
|
||||
|
||||
/* lc_time localization cache */
|
||||
extern char *localized_abbrev_days[];
|
||||
extern char *localized_full_days[];
|
||||
extern char *localized_abbrev_months[];
|
||||
extern char *localized_full_months[];
|
||||
|
||||
|
||||
extern const char *locale_messages_assign(const char *value,
|
||||
bool doit, GucSource source);
|
||||
extern const char *locale_monetary_assign(const char *value,
|
||||
@@ -42,4 +50,6 @@ extern bool lc_ctype_is_c(void);
|
||||
*/
|
||||
extern struct lconv *PGLC_localeconv(void);
|
||||
|
||||
extern void cache_locale_time(void);
|
||||
|
||||
#endif /* _PG_LOCALE_ */
|
||||
|
||||
Reference in New Issue
Block a user