What is the recommended way to deal with this? Update errno.h?
As a temporary hack, I defined it in the files that were complaining
about it, but I don't consider that a good hack.
However, fixing that and a couple of other things...it compiled. I'm
still testing it. Pending the answer to this, I will submit it as a
new package.
Thanks.
FYI: EILSEQ is an invention of the C committee (in 1994), it annonces
the occurrence of an encoding error in a multi-byte character decoding
(like for example an illegal value for a byte inside a non-ASCII UTF-8
character); since Minix does not deal at all with more-than-one-byte
characters, it cannot be emitted by any function of the standard library
(most of the related ones, e.g. mbrtowc(), do not even exist.)
> As a temporary hack, I defined it in the files that were complaining
> about it, but I don't consider that a good hack.
However, it might be a good solution!
Another possibility (that I often use for "traditional" signals which
are not defined on my platform, like SIGEMT, but are trapped by code
ported) could be to surround the lines where it is used with #ifdef
if (errno == ERANGE || errno == EDOM
#ifdef EILSEQ
|| errno == EILSEQ
#endif
) die_in_flames("...
I do not know if this is an official recommendation, or even if it is a
better or worse hack, yet I am happy with this, since I believe it
breaks the lowest number of things.
On the long term, adding EILSEQ to <errno.h> is probably the way to go.
Antoine
--
You received this message because you are subscribed to the Google Groups "minix3" group.
To post to this group, send email to min...@googlegroups.com.
To unsubscribe from this group, send email to minix3+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/minix3?hl=en.
Base your choice on whether the constant aught to be there. Some
programs use Linux-specific stuff and that is unwanted in MINIX.
However, POSIX standardized declarations aught to be in MINIX too.
The way to check this is to go to the Open Group website. Here one can
see that EILSEQ aught to be there:
http://www.opengroup.org/onlinepubs/000095399/basedefs/errno.h.html
Given that it aught to be there, you can modify the header file in the
MINIX source tree (be sure to use the latest SVN trunk) and post a
patch here. Justify the change by pointing to the standard.
With kind regards,
Erik
apropos multibyte characters, is there support (or at least planned)
for Unicode in Minix, and what is the state of it's implementation?
Kind Regards,
Moritz
2009/12/30 Erik van der Kouwe <eri...@gmail.com>:
No and none.
Regards,
David