Commit 5d3d72a6 authored by Michael Schumacher's avatar Michael Schumacher

open the file descriptor in binary mode.

* gegl/buffer/gegl-tile-disk.c (gegl_tile_disk_constructor): open the file descriptor in binary mode.

svn path=/trunk/; revision=2053
parent 78966cb3
2008-02-18 Michael Schumacher <schumaml@cvs.gnome.org>
* gegl/buffer/gegl-tile-disk.c (gegl_tile_disk_constructor): open
the file descriptor in binary mode.
2008-01-18 Kevin Cozens <kcozens@cvs.gnome.org>
* operations/workshop/generated/Makefile.am: Remove generated .c
......
......@@ -105,6 +105,13 @@ disk_entry_read (GeglTileDisk *disk,
g_strerror (errno), err, nleft);
return;
}
else
{
g_message ("read tile data from disk: "
"%s (%d/%d bytes read)",
g_strerror (errno), err, nleft);
}
nleft -= err;
}
}
......@@ -453,7 +460,7 @@ gegl_tile_disk_constructor (GType type,
object = G_OBJECT_CLASS (parent_class)->constructor (type, n_params, params);
disk = GEGL_TILE_DISK (object);
disk->fd = g_open (disk->path, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR | O_DIRECT);
disk->fd = g_open (disk->path, O_CREAT | O_RDWR | O_BINARY, S_IRUSR | S_IWUSR | O_DIRECT);
if (disk->fd == -1)
{
g_message ("Unable to open swap file '%s' GEGL unable to initialize virtual memory", disk->path);
......
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