Opened 4 years ago

#338 new defect

mbstowcs() returns in bytes not in wide-characters

Reported by: komh 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 komh 4 years ago.
testcase

Download all attachments as: .zip

Change History (1)

Changed 4 years ago by komh

testcase

Note: See TracTickets for help on using tickets.