openbsd-ports/devel/libunicode/patches/patch-convert_c
margarida 2f3ebc1d3c Import of libunicode-0.4
--
libunicode is a library for manipulating Unicode characters and
strings. It understands both the UTF-8 and UCS-2 encodings, and
has a framework for adding support for new encodings.

brad@ ok
2002-12-19 01:19:52 +00:00

31 lines
751 B
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

$OpenBSD: patch-convert_c,v 1.1.1.1 2002/12/19 01:19:52 margarida Exp $
--- convert.c.orig Fri Sep 3 05:33:27 1999
+++ convert.c Mon Dec 16 17:15:23 2002
@@ -27,16 +27,11 @@
#include "unicode.h"
#include "convert.h"
-#ifndef EILSEQ
-/* On some systems, like SunOS, EILSEQ is not defined. On those
- systems we use EBADMSG instead. */
-# define EILSEQ EBADMSG
-#endif
/* Linked list of all character sets. */
static unicode_encoding_t *encodings;
-
+
void
unicode_register_encoding (unicode_encoding_t *vec)
@@ -144,7 +139,7 @@ unicode_iconv_close (unicode_iconv_t cd)
return r;
}
-size_t
+ssize_t
unicode_iconv (unicode_iconv_t cd, const char **inbuf, size_t *inbytesleft,
char **outbuf, size_t *outbytesleft)
{