mirror of
https://github.com/postgres/postgres.git
synced 2025-12-10 14:22:35 +03:00
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
This commit is contained in:
46
src/include/utils/pg_locale.h
Normal file
46
src/include/utils/pg_locale.h
Normal file
@@ -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_ */
|
||||
Reference in New Issue
Block a user