Commit cdfe4bb6 authored by Bruce Momjian's avatar Bruce Momjian

Pleas apply it for 7.2.1 and current CVS.

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

Teodor Sigaev
parent 0d284246
...@@ -114,12 +114,13 @@ initmorph(void) ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment