std.fmt c specifier should print numbers as unicode codepoints #5564
Labels
breaking
Implementing this issue could cause existing code to no longer compile or have different behavior.
proposal
This issue suggests modifications. If it also has the "accepted" label then it is planned.
standard library
This issue involves writing Zig code for the standard library.
Milestone
It makes no sense to have unicode character literals but no way to format them.
The
c
specifier should format integers as unicode codepoints and a new specifier should be added for formatting them as their literal bytes.This is how the Go, Python, Odin and Java handle
c
.The text was updated successfully, but these errors were encountered: