zig/lib
Ian Johnson 0a70455095 Fix handling of empty XDG environment variables
Closes #21132

According to the XDG Base Directory specification
(https://specifications.freedesktop.org/basedir-spec/latest/#variables),
empty values for these environment variables should be treated the same
as if they are unset. Specifically, for the instances changed in this
commit,

> $XDG_DATA_HOME defines the base directory relative to which
> user-specific data files should be stored. If $XDG_DATA_HOME is either
> not set **or empty**, a default equal to $HOME/.local/share should be
> used.

and

> $XDG_CACHE_HOME defines the base directory relative to which
> user-specific non-essential data files should be stored. If
> $XDG_CACHE_HOME is either not set **or empty**, a default equal to
> $HOME/.cache should be used.

(emphasis mine)

In addition to the case mentioned in the linked issue, all other uses of
XDG environment variables were corrected.
2024-08-19 23:30:14 -07:00
..
compiler fix various issues related to Path handling in the compiler and std 2024-08-19 19:09:11 +02:00
compiler_rt compiler-rt: Fix the leoncasa CPU feature check for sparc32. 2024-08-12 14:36:21 -07:00
docs wasm zig source rendering: fix annotation location off-by-one 2024-08-07 00:48:32 -07:00
fuzzer more optimized and correct management of 8-bit PC counters 2024-08-08 21:46:36 -07:00
include update C language headers to LLVM 18 2024-05-08 19:37:28 -07:00
init update comment in init template 2024-08-18 14:23:49 -07:00
libc loongarch: add glibc start.S to make zig-bootstrap work for loongarch64-linux-gnu (#21015) 2024-08-14 21:32:03 +00:00
libcxx update libcxx and libcxxabi to llvm 18.1.6 2024-05-20 16:12:36 -04:00
libcxxabi update libcxx and libcxxabi to llvm 18.1.6 2024-05-20 16:12:36 -04:00
libunwind libunwind: update to LLVM 18 2024-05-08 19:37:29 -07:00
std Fix handling of empty XDG environment variables 2024-08-19 23:30:14 -07:00
tsan tsan: update rtl files to LLVM 17.0.6 2024-01-10 01:00:37 -07:00
c.zig std.os.linux: Move clone() here and stop exporting it. 2024-08-07 01:19:51 -07:00
compiler_rt.zig stage2-wasm: bit_reverse 2024-06-16 11:53:33 +02:00
fuzzer.zig more optimized and correct management of 8-bit PC counters 2024-08-08 21:46:36 -07:00
zig.h zig.h: fixup pointer atomic load definitions 2024-07-26 10:42:10 -04:00