Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d28424 commit cdfe4bbCopy full SHA for cdfe4bb
contrib/tsearch/morph.c
@@ -114,12 +114,13 @@ initmorph(void)
114
115
#ifdef USE_LOCALE
116
PGLC_current(&lc);
117
- for (i = 1; i < lengthof(dicts); i++)
118
- if (strcmp(dicts[i].localename, lc.lang) == 0)
119
- {
120
- bylocaledict = i;
121
- break;
122
- }
+ if ( lc.lc_ctype )
+ for (i = 1; i < lengthof(dicts); i++)
+ if (strcmp(dicts[i].localename, lc.lc_ctype) == 0)
+ {
+ bylocaledict = i;
+ break;
123
+ }
124
PGLC_free_categories(&lc);
125
#endif
126
0 commit comments