Subject: mblen (c library routine) on netbsd 386
To: None <tech-userlevel@NetBSD.ORG>
From: Dale Moore <Dale_Moore@MOORE.FAC.CS.CMU.EDU>
List: tech-userlevel
Date: 01/24/1995 16:25:08
Short Version:
mblen (3) broken on NetBSD 1.0 ?
Long Version:
The following code
#include <stdlib.h>
#include <stdio.h>
main()
{
printf("mblen(\"X\", MB_CUR_MAX) = %d\n", mblen("X", MB_CUR_MAX));
}
Produces this result on NetBSD,
mblen("X", MB_CUR_MAX) = -1
But produces this result on Ultrix, Alpha OSF/1, Sun4-413, and HP-UX.
mblen("X", MB_CUR_MAX) = 1
The routine mblen is a part of the ANSI X3.159-1989 C Programming Language
summary.