Opened 9 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 9 years ago.
testcase

Download all attachments as: .zip

Change History (1)

Changed 9 years ago by KO Myung-Hun

Attachment: mbstowcs.c added

testcase

Note: See TracTickets for help on using tickets.