Opened 10 years ago

#338 new defect

mbstowcs() returns in bytes not in wide-characters

Reported by: KO Myung-Hun Owned by:
Priority: normal Milestone: libc-0.7
Component: libc Version: 0.6.6
Severity: normal Keywords:
Cc:

Description

Hi/2.

mbstowcs() should returns in wide-characters(). See http://pubs.opengroup.org/onlinepubs/009695399/functions/mbstowcs.html. However, it returns in bytes.

I attach a test program. In that, mbstowcs() should return 3 likes wcslen().

Attachments (1)

mbstowcs.c (406 bytes ) - added by KO Myung-Hun 10 years ago.
testcase

Download all attachments as: .zip

Change History (1)

by KO Myung-Hun, 10 years ago

Attachment: mbstowcs.c added

testcase

Note: See TracTickets for help on using tickets.