std.fmt.format breaks with UTF-8 ─
character as fill
#17025
Labels
bug
Observed behavior contradicts documented or intended behavior
error message
This issue points out an error message that is unhelpful and should be improved.
standard library
This issue involves writing Zig code for the standard library.
Milestone
Zig Version
0.11.0
Steps to Reproduce and Observed Behavior
When using some UTF-8 characters to pad/fill the output,
print()
fails. In the example below, while padding with+
signs works as expected, padding with─
does not. The character─
is a box drawing character, useful e.g. when drawing tables with text in the terminal.Expected Behavior
For the padding to work with any printable character.
The text was updated successfully, but these errors were encountered: