You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've done some tests with UTF-8 strings, and think string formatting with precision doesn't work as expected.
fmt::format(u8"{:.4}", u8"cafés");
The format call above, even if done properly with char8_t based strings returns "caf\xc3" instead of "café", where "\xc3" is the first byte of the UTF-8 sequence "\xc3\xa9" for "é".
The text was updated successfully, but these errors were encountered:
I've done some tests with UTF-8 strings, and think string formatting with precision doesn't work as expected.
fmt::format(u8"{:.4}", u8"cafés");
The format call above, even if done properly with char8_t based strings returns "caf\xc3" instead of "café", where "\xc3" is the first byte of the UTF-8 sequence "\xc3\xa9" for "é".
The text was updated successfully, but these errors were encountered: