+Bug fix: Lock files weren't removed as they should when using NT.
+
Implemented Z39.50 Sort. Zebra's sort handler uses use attributes to
specify a "sort register". Refer to the gils sample records which
refer to index type "s" which is specified as "sort" in the default.idx
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: bfile.c,v $
- * Revision 1.25 1997-10-27 14:25:38 adam
+ * Revision 1.26 1998-02-17 10:32:52 adam
+ * Fixed bug: binary files weren't opened with flag b on NT.
+ *
+ * Revision 1.25 1997/10/27 14:25:38 adam
* Fixed memory leaks.
*
* Revision 1.24 1997/09/18 08:59:16 adam
{
FILE *outf;
- outf = open_cache (bfs, "a");
+ outf = open_cache (bfs, "ab");
if (!outf)
{
logf (LOG_FATAL|LOG_ERRNO, "open %scache",
{
FILE *inf;
- inf = open_cache (bfs, "r");
+ inf = open_cache (bfs, "rb");
if (inf)
{
fclose (inf);
int first_time;
assert (bfs->commit_area);
- if (!(inf = open_cache (bfs, "r")))
+ if (!(inf = open_cache (bfs, "rb")))
{
logf (LOG_LOG, "No commit file");
return ;
mustDisable = 1;
}
- if (!(inf = open_cache (bfs, "r")))
+ if (!(inf = open_cache (bfs, "rb")))
return ;
while (fscanf (inf, "%s %d", path, &block_size) == 2)
{
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: extract.c,v $
- * Revision 1.78 1998-02-10 12:03:05 adam
+ * Revision 1.79 1998-02-17 10:32:52 adam
+ * Fixed bug: binary files weren't opened with flag b on NT.
+ *
+ * Revision 1.78 1998/02/10 12:03:05 adam
* Implemented Sort.
*
* Revision 1.77 1998/01/12 15:04:08 adam
qsort (key_buf + ptr_top-ptr_i, ptr_i, sizeof(char*), key_qsort_compare);
getFnameTmp (out_fname, key_file_no);
- if (!(outf = fopen (out_fname, "w")))
+ if (!(outf = fopen (out_fname, "wb")))
{
logf (LOG_FATAL|LOG_ERRNO, "fopen %s", out_fname);
exit (1);
qsort (key_buf + ptr_top-ptr_i, ptr_i, sizeof(char*), key_x_compare);
getFnameTmp (out_fname, key_file_no);
- if (!(outf = fopen (out_fname, "w")))
+ if (!(outf = fopen (out_fname, "wb")))
{
logf (LOG_FATAL|LOG_ERRNO, "fopen %s", out_fname);
exit (1);
static void addString (RecWord *p, const char *string, int length)
{
+ assert (length > 0);
if (zebra_maps_is_sort (p->zebra_maps, p->reg_type))
addSortString (p, string, length);
else
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: kinput.c,v $
- * Revision 1.26 1998-01-29 13:39:13 adam
+ * Revision 1.27 1998-02-17 10:32:52 adam
+ * Fixed bug: binary files weren't opened with flag b on NT.
+ *
+ * Revision 1.26 1998/01/29 13:39:13 adam
* Compress ISAM is default.
*
* Revision 1.25 1997/09/17 12:19:14 adam
strcpy (this_name, hci.cur_name);
logf (LOG_DEBUG, "inserting %s", 1+hci.cur_name);
+ assert (hci.cur_name[1]);
no_diffs++;
if ((dict_info = dict_lookup (hi->dict, hci.cur_name)))
{