Working on collations again (based on FreeBSD implementation) and reading
"wcrtomb" I see that return value of wcrtomb should be either positive or
(size_t)-1, then:
diff -ruN src53orig/lib/libc/citrus/citrus_none.c
src53coll/lib/libc/citrus/citr
us_none.c
--- src53orig/lib/libc/citrus/citrus_none.c Sat Feb 9 14:26:51 2013
+++ src53coll/lib/libc/citrus/citrus_none.c Sat Mar 2 06:59:58 2013
@@ -115,7 +115,7 @@
/* ps appears to be unused */
if (s == NULL)
- return (0);
+ return (1);
if (wc < 0 || wc > 0xff) {
errno = EILSEQ;
--
Dios, gracias por tu amor infinito.
--
Vladimir Támara Patiño. http://vtamara.pasosdeJesus.org/
http://www.pasosdejesus.org/dominio_publico_colombia.html