1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-31 22:04:40 +03:00

Remove all traces of multibyte and locale options. Clean up comments

referring to "multibyte" where it really means character encoding.
This commit is contained in:
Peter Eisentraut
2002-09-03 21:45:44 +00:00
parent 86f27321e2
commit 77f7763b55
47 changed files with 127 additions and 284 deletions

View File

@ -2,9 +2,7 @@
#define TABLE_DICT_END }
#include "dict/porter_english.dct"
#ifdef USE_LOCALE
#include "dict/russian_stemming.dct"
#endif
#undef TABLE_DICT_START
#undef TABLE_DICT_END

View File

@ -104,19 +104,15 @@ initmorph(void)
k;
MAPDICT *md;
bool needinit[lengthof(dicts)];
#ifdef USE_LOCALE
PG_LocaleCategories lc;
int bylocaledict = NODICT;
#endif
if (inited)
return;
for (i = 1; i < lengthof(dicts); i++)
needinit[i] = false;
#ifdef USE_LOCALE
PGLC_current(&lc);
if ( lc.lc_ctype )
for (i = 1; i < lengthof(dicts); i++)
@ -126,7 +122,6 @@ initmorph(void)
break;
}
PGLC_free_categories(&lc);
#endif
for (i = 1; i < lengthof(mapdict); i++)
{
@ -139,13 +134,9 @@ initmorph(void)
break;
else if (GETDICT(md, k) == BYLOCALE)
{
#ifdef USE_LOCALE
if (bylocaledict == NODICT)
continue;
GETDICT(md, k) = bylocaledict;
#else
continue;
#endif
}
if (GETDICT(md, k) >= (int2) lengthof(dicts))
continue;