X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=recctrl%2Fregxread.c;h=7b7b8bee91ce1e7c599bbd5258da94d446cad26e;hb=5e7516d00451ada59a311fad05e8e3959242cdc7;hp=5ec5624874407521ae4ee671d4d27ea4c1d552f6;hpb=1577e2d83cdd5e6c251d0c674d327252cf9b27be;p=idzebra-moved-to-github.git diff --git a/recctrl/regxread.c b/recctrl/regxread.c index 5ec5624..7b7b8be 100644 --- a/recctrl/regxread.c +++ b/recctrl/regxread.c @@ -3,7 +3,13 @@ * All rights reserved. * * $Log: regxread.c,v $ - * Revision 1.36 2001-05-22 21:02:26 adam + * Revision 1.38 2002-04-04 20:50:37 adam + * Multi register works with record paths and data1 profile path + * + * Revision 1.37 2001/05/29 08:51:59 adam + * More fixes for character encodings. + * + * Revision 1.36 2001/05/22 21:02:26 adam * Fixes for Tcl UTF8 character handling. * * Revision 1.35 2001/03/29 21:31:31 adam @@ -750,13 +756,13 @@ int readFileSpec (struct lexSpec *spec) if (spec->tcl_interp) { sprintf (fname, "%s.tflt", spec->name); - spec_inf = yaz_path_fopen (data1_get_tabpath(spec->dh), fname, "r"); + spec_inf = data1_path_fopen (spec->dh, fname, "r"); } #endif if (!spec_inf) { sprintf (fname, "%s.flt", spec->name); - spec_inf = yaz_path_fopen (data1_get_tabpath(spec->dh), fname, "r"); + spec_inf = data1_path_fopen (spec->dh, fname, "r"); } if (!spec_inf) { @@ -2102,7 +2108,9 @@ data1_node *grs_read_tcl (struct grs_read_info *p) if (*curLexSpec) lexSpecDestroy (curLexSpec); *curLexSpec = lexSpecCreate (p->type, p->dh); + Tcl_FindExecutable(""); tcl_interp = (*curLexSpec)->tcl_interp = Tcl_CreateInterp(); + Tcl_Init(tcl_interp); Tcl_CreateCommand (tcl_interp, "begin", cmd_tcl_begin, *curLexSpec, 0); Tcl_CreateCommand (tcl_interp, "end", cmd_tcl_end, *curLexSpec, 0); Tcl_CreateCommand (tcl_interp, "data", cmd_tcl_data, *curLexSpec, 0);