Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcdfe4bb

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 parent0d28424 commitcdfe4bb

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
#ifdefUSE_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)

[8]ページ先頭

©2009-2025 Movatter.jp