zig/lib
Andrew Kelley 2d9c4792ae std.fmt: clarify the use of "character"
Currently, std.fmt has a misguided, half-assed Unicode implementation
with an ambiguous definition of the word "character". This commit does
almost nothing to mitigate the problem, but it lets me close an open PR.

In the future I will revert 473cb1fd74 as
well as 279607cae5, and redo the whole
std.fmt API, breaking everyone's code and unfortunately causing nearly
every Zig user to have a bad day. std.fmt will go back to only dealing
in bytes, with zero Unicode awareness whatsoever. I suggest a third
party package provide Unicode functionality as well as a more advanced
text formatting function for when Unicode awareness is needed. I have
always suggested this, and I sincerely apologize for merging pull
requests that compromised my stance on this matter.

Most applications should, instead, strive to make their code independent
of Unicode, dealing strictly in encoded UTF-8 bytes, and never attempt
operations such as: substring manipulation, capitalization, alignment,
word replacement, or column number calculations.

Exceptions to this include web browsers, GUI toolkits, and terminals. If
you're not making one of these, any dependency on Unicode is probably a
bug or worse, a poor design decision.

closes #18536
2024-01-21 20:31:13 -07:00
..
compiler_rt Enable gnu_f16_abi on x86_64 2024-01-04 17:41:30 +02:00
docs Update styles in std docs to correct display glitch 2024-01-12 16:25:55 -08:00
include update C language headers to LLVM 17 2023-09-19 09:37:31 -07:00
init Grammar fixes (#18320) 2023-12-20 13:17:15 +02:00
libc mingw-w64: remove msvcrt sources 2024-01-20 00:21:34 +00:00
libcxx update libcxx to latest LLVM release/17.x 2023-09-19 09:37:53 -07:00
libcxxabi libcxxabi: update to LLVM 17 2023-09-19 09:37:31 -07:00
libunwind libunwind: update to LLVM 17 2023-09-19 09:37:31 -07:00
std std.fmt: clarify the use of "character" 2024-01-21 20:31:13 -07:00
tsan tsan: update rtl files to LLVM 17.0.6 2024-01-10 01:00:37 -07:00
build_runner.zig zig build: handle stderr more elegantly 2024-01-10 17:11:26 -08:00
c.zig std: finish cleanup up asm 2023-07-31 03:49:21 -04:00
compiler_rt.zig move libssp into libcompiler_rt 2023-11-10 13:12:10 -07:00
test_runner.zig wasm: re-enable regressed tests 2023-11-01 19:47:15 +01:00
zig.h cbe: fix non-msvc externs and exports 2024-01-03 02:52:25 -05:00