aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/passing_an_under-aligned_function_pointer.zig
diff options
context:
space:
mode:
authorRyan Liptak <squeek502@hotmail.com>2023-09-17 02:13:14 -0700
committerAndrew Kelley <andrew@ziglang.org>2023-09-17 11:05:06 -0700
commitbc626e8b896bee26f565a271da7e60b2564ee341 (patch)
tree6ff887213006e4780180a018eab249d11cddd3b1 /test/cases/compile_errors/passing_an_under-aligned_function_pointer.zig
parentc1e94b28a370bdfe40e8e767b82535e248318aa7 (diff)
downloadzig-bc626e8b896bee26f565a271da7e60b2564ee341.tar.gz
zig-bc626e8b896bee26f565a271da7e60b2564ee341.zip
Make `std.os.getenv` always a compile error on Windows
The _environ variable that is populated when linking libc on Windows does not support Unicode keys/values (or, at least, the encoding is not necessarily UTF-8). So, for Unicode support, _wenviron would need to be used instead. However, this means that the keys/values would be encoded as UTF-16, so they would need to be converted to UTF-8 before being returned by `os.getenv`. This would require allocation which is not part of the `os.getenv` API, so `os.getenv` is not implementable on Windows even when linking libc. Closes https://github.com/ziglang/zig/issues/8456
Diffstat (limited to 'test/cases/compile_errors/passing_an_under-aligned_function_pointer.zig')
0 files changed, 0 insertions, 0 deletions