1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-26 01:22:12 +03:00

Pleas apply it for 7.2.1 and current CVS.

Patch fixes using lc.lang instead of lc.lc_ctype.

Teodor Sigaev
This commit is contained in:
Bruce Momjian
2002-03-11 16:54:27 +00:00
parent 0d2842468c
commit cdfe4bb64f

View File

@ -114,12 +114,13 @@ initmorph(void)
#ifdef USE_LOCALE #ifdef USE_LOCALE
PGLC_current(&lc); PGLC_current(&lc);
for (i = 1; i < lengthof(dicts); i++) if ( lc.lc_ctype )
if (strcmp(dicts[i].localename, lc.lang) == 0) for (i = 1; i < lengthof(dicts); i++)
{ if (strcmp(dicts[i].localename, lc.lc_ctype) == 0)
bylocaledict = i; {
break; bylocaledict = i;
} break;
}
PGLC_free_categories(&lc); PGLC_free_categories(&lc);
#endif #endif