Skip to content

Commit cdfe4bb

Browse files
committed
Pleas apply it for 7.2.1 and current CVS.
Patch fixes using lc.lang instead of lc.lc_ctype. Teodor Sigaev
1 parent 0d28424 commit cdfe4bb

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

contrib/tsearch/morph.c

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,13 @@ initmorph(void)
114114

115115
#ifdef USE_LOCALE
116116
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-
}
117+
if ( lc.lc_ctype )
118+
for (i = 1; i < lengthof(dicts); i++)
119+
if (strcmp(dicts[i].localename, lc.lc_ctype) == 0)
120+
{
121+
bylocaledict = i;
122+
break;
123+
}
123124
PGLC_free_categories(&lc);
124125
#endif
125126

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy