small portability problem: fgetpos/fsetpos in iomonad.c
15 Oct
2000
15 Oct
'00
11:50 p.m.
There seems to be an unwarranted assumption in iomonad.c that a value of type fpos_t is a scalar which can be cast (in C) into an integer. I have just had to install hugs98-Feb2000.tar.gz on a system (it is a redhat 7.0, for what that's worth) where the fpos_t is a structure containing the offset and some extra state. The extra state is possibly something to do with multibyte characters. The affected lines are (of course) in primHGetPosn and primHSetPosn, and one quick fix is to undefine HAVE_FGETPOS in config.h (at least on systems that have ftell and fseek).
9398
Age (days ago)
9398
Last active (days ago)
0 comments
1 participants
participants (1)
-
Geraint Jones