simply setting is_readable and is_writeable to TRUE does make Gimp

2001-09-22  Hans Breuer  <hans@breuer.org>

	* glib/giowin32.c : simply setting is_readable and is_writeable
	to TRUE does make Gimp plug-ins work again. Still no API known
	to request this info on Win32 (see #57690)
This commit is contained in:
Hans Breuer 2001-09-22 19:40:58 +00:00 committed by Hans Breuer
parent fdc27bb82c
commit f664bba3d4
9 changed files with 72 additions and 12 deletions

View File

@ -1,9 +1,15 @@
2001-09-22 Hans Breuer <hans@breuer.org>
* glib/giowin32.c : simply setting is_readable and is_writeable
to TRUE does make Gimp plug-ins work again. Still no API known
to request this info on Win32 (see #57690)
2001-09-21 Hans Breuer <hans@breuer.org>
* makefile.msc : added rule for glibconfig.h
* glib/giowin32.c (g_io_channel_new_file) : always open
in binary mode
in binary mode (fix for #57695)
* glib/glib.def : updated externals

View File

@ -1,9 +1,15 @@
2001-09-22 Hans Breuer <hans@breuer.org>
* glib/giowin32.c : simply setting is_readable and is_writeable
to TRUE does make Gimp plug-ins work again. Still no API known
to request this info on Win32 (see #57690)
2001-09-21 Hans Breuer <hans@breuer.org>
* makefile.msc : added rule for glibconfig.h
* glib/giowin32.c (g_io_channel_new_file) : always open
in binary mode
in binary mode (fix for #57695)
* glib/glib.def : updated externals

View File

@ -1,9 +1,15 @@
2001-09-22 Hans Breuer <hans@breuer.org>
* glib/giowin32.c : simply setting is_readable and is_writeable
to TRUE does make Gimp plug-ins work again. Still no API known
to request this info on Win32 (see #57690)
2001-09-21 Hans Breuer <hans@breuer.org>
* makefile.msc : added rule for glibconfig.h
* glib/giowin32.c (g_io_channel_new_file) : always open
in binary mode
in binary mode (fix for #57695)
* glib/glib.def : updated externals

View File

@ -1,9 +1,15 @@
2001-09-22 Hans Breuer <hans@breuer.org>
* glib/giowin32.c : simply setting is_readable and is_writeable
to TRUE does make Gimp plug-ins work again. Still no API known
to request this info on Win32 (see #57690)
2001-09-21 Hans Breuer <hans@breuer.org>
* makefile.msc : added rule for glibconfig.h
* glib/giowin32.c (g_io_channel_new_file) : always open
in binary mode
in binary mode (fix for #57695)
* glib/glib.def : updated externals

View File

@ -1,9 +1,15 @@
2001-09-22 Hans Breuer <hans@breuer.org>
* glib/giowin32.c : simply setting is_readable and is_writeable
to TRUE does make Gimp plug-ins work again. Still no API known
to request this info on Win32 (see #57690)
2001-09-21 Hans Breuer <hans@breuer.org>
* makefile.msc : added rule for glibconfig.h
* glib/giowin32.c (g_io_channel_new_file) : always open
in binary mode
in binary mode (fix for #57695)
* glib/glib.def : updated externals

View File

@ -1,9 +1,15 @@
2001-09-22 Hans Breuer <hans@breuer.org>
* glib/giowin32.c : simply setting is_readable and is_writeable
to TRUE does make Gimp plug-ins work again. Still no API known
to request this info on Win32 (see #57690)
2001-09-21 Hans Breuer <hans@breuer.org>
* makefile.msc : added rule for glibconfig.h
* glib/giowin32.c (g_io_channel_new_file) : always open
in binary mode
in binary mode (fix for #57695)
* glib/glib.def : updated externals

View File

@ -1,9 +1,15 @@
2001-09-22 Hans Breuer <hans@breuer.org>
* glib/giowin32.c : simply setting is_readable and is_writeable
to TRUE does make Gimp plug-ins work again. Still no API known
to request this info on Win32 (see #57690)
2001-09-21 Hans Breuer <hans@breuer.org>
* makefile.msc : added rule for glibconfig.h
* glib/giowin32.c (g_io_channel_new_file) : always open
in binary mode
in binary mode (fix for #57695)
* glib/glib.def : updated externals

View File

@ -1,9 +1,15 @@
2001-09-22 Hans Breuer <hans@breuer.org>
* glib/giowin32.c : simply setting is_readable and is_writeable
to TRUE does make Gimp plug-ins work again. Still no API known
to request this info on Win32 (see #57690)
2001-09-21 Hans Breuer <hans@breuer.org>
* makefile.msc : added rule for glibconfig.h
* glib/giowin32.c (g_io_channel_new_file) : always open
in binary mode
in binary mode (fix for #57695)
* glib/glib.def : updated externals

View File

@ -1337,10 +1337,22 @@ g_io_channel_win32_new_fd (gint fd)
win32_channel->fd = fd;
/* fstat doesn't deliver senseful values, but
* fcntl isn't available, so guess ...
*/
if (st.st_mode & _S_IFIFO)
{
channel->is_readable = TRUE;
channel->is_writeable = TRUE;
channel->is_seekable = FALSE;
}
else
{
channel->is_readable = !!(st.st_mode & _S_IREAD);
channel->is_writeable = !!(st.st_mode & _S_IWRITE);
/* XXX: pipes aren't seeakable, are they ? */
channel->is_seekable = !(st.st_mode & _S_IFIFO);
}
return channel;
}