Opened 11 years ago

Closed 11 years ago

#2822 closed bug (duplicate)

mblen function always returns 0

Reported by: augiedoggie Owned by: axeld
Priority: normal Milestone: R1
Component: System/ Version: R1/pre-alpha1
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All


The mblen function is supposed to return the number of bytes for a specific character but it is always returning 0. I am attaching a simple program that runs fine on linux and OSX(i.e. it returns 1). You sould be able to compile it and then run:

./mbtest a


./mbtest 1


./mbtest whatever

Unfortunately I don't know enough about setting locales and character conversion to provide a better report.

Attachments (1)

mbtest.c (188 bytes ) - added by augiedoggie 11 years ago.

Download all attachments as: .zip

Change History (2)

by augiedoggie, 11 years ago

Attachment: mbtest.c added

comment:1 by anevilyak, 11 years ago

Resolution: duplicate
Status: newclosed

Duplicate of ticket #1881 and #1855, none of these functions will work correctly until glibc's wide character support is correctly handled.

Note: See TracTickets for help on using tickets.