if ((fildes = open (uugen_fnbuffer, O_WRONLY | O_CREAT | O_BINARY | O_TRUNC, (uu_ignmode)?0666:thefile->mode)) == -1) { progress.action = 0; UUMessage (uulib_id, __LINE__, UUMSG_ERROR, uustring (S_NOT_OPEN_TARGET), uugen_fnbuffer, strerror (uu_errno = errno)); fclose (source); return UURET_IOERR; } /* note that O_BINARY is 0 on the OSX platform and the other args are verified to be ok as well */ /* errno is EINVAL in the UUMessage call above when UTF-8 filename contains funky accented chars.. */