diff options
author | Bruce Momjian <bruce@momjian.us> | 2000-01-07 17:22:47 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2000-01-07 17:22:47 +0000 |
commit | 8da88a6f2b9c20f72abe3f232c32de7c257511f6 (patch) | |
tree | f48fbe06186883ddef85197249c6f634b9d440b1 /src/include/utils | |
parent | 27fdbca749c6bf48cd9b4be7e1f12f3699a9b92e (diff) | |
download | postgresql-8da88a6f2b9c20f72abe3f232c32de7c257511f6.tar.gz postgresql-8da88a6f2b9c20f72abe3f232c32de7c257511f6.zip |
Sorry, that I send this letter/patch again, but previous sending is
still
without answer. I want continue with to_char(), but I need any answer
for this patch. Please.
Thank! (and sorry of my impatient :-)
Karel
Diffstat (limited to 'src/include/utils')
-rw-r--r-- | src/include/utils/pg_locale.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/src/include/utils/pg_locale.h b/src/include/utils/pg_locale.h new file mode 100644 index 00000000000..e5aee46c9b3 --- /dev/null +++ b/src/include/utils/pg_locale.h @@ -0,0 +1,46 @@ + +/*------ + * pg_locale.h + * + * The PostgreSQL locale utils + * + * 2000 Karel Zak - Zakkr + * + *------ + */ + + #ifndef _PG_LOCALE_ + #define _PG_LOCALE_ + + #ifdef USE_LOCALE + +/*------ + * POSIX locale categories and environment variable LANG + *------ + */ +typedef struct PG_LocaleCategories { + char *lang, + *lc_ctype, + *lc_numeric, + *lc_time, + *lc_collate, + *lc_monetary, + *lc_messages; +} PG_LocaleCategories; + + +extern PG_LocaleCategories *PGLC_current( PG_LocaleCategories *lc ); +extern PG_LocaleCategories *PGLC_setlocale( PG_LocaleCategories *lc ); + +/*------ + * Return the POSIX lconv struct (contains number/money formatting information) + * with locale information for *all* categories. Returned lconv is *independent* + * on current locale catogories setting - in contrast to standard localeconv(). + *------ + */ +extern struct lconv *PGLC_localeconv(); + + +#endif /* USE_LOCALE */ + +#endif /* _PG_LOCALE_ */ |