2f3ebc1d3c
-- 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
31 lines
751 B
Plaintext
31 lines
751 B
Plaintext
$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)
|
||
{
|