Skip to content

Commit ecabc5c

Browse files
committed
Add guc lc_ctype back
1 parent d04a3e2 commit ecabc5c

3 files changed

Lines changed: 13 additions & 0 deletions

File tree

src/backend/utils/adt/pg_locale.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@
9797

9898

9999
/* GUC settings */
100+
char *locale_ctype;
100101
char *locale_messages;
101102
char *locale_monetary;
102103
char *locale_numeric;

src/backend/utils/misc/guc_tables.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4147,6 +4147,17 @@ struct config_string ConfigureNamesString[] =
41474147
NULL, NULL, NULL
41484148
},
41494149

4150+
{
4151+
{"lc_ctype", PGC_INTERNAL, PRESET_OPTIONS,
4152+
gettext_noop("Shows the character classification and case conversion locale."),
4153+
NULL,
4154+
GUC_NOT_IN_SAMPLE | GUC_DISALLOW_IN_FILE
4155+
},
4156+
&locale_ctype,
4157+
"C",
4158+
NULL, NULL, NULL
4159+
},
4160+
41504161
/* See main.c about why defaults for LC_foo are not all alike */
41514162

41524163
{

src/include/utils/pg_locale.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
#define LOCALE_NAME_BUFLEN 128
3737

3838
/* GUC settings */
39+
extern PGDLLIMPORT char *locale_ctype;
3940
extern PGDLLIMPORT char *locale_messages;
4041
extern PGDLLIMPORT char *locale_monetary;
4142
extern PGDLLIMPORT char *locale_numeric;

0 commit comments

Comments
 (0)