Skip to content

[libc] Support %lc in printf #166598

@michaelrj-google

Description

@michaelrj-google

Currently our printf implementation just ignores the length modifier for char. We should use the internal wcrtomb to first convert the wchar to utf-8 then write it to the output.

Standard: https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3220.pdf#page=343

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions