zig/lib/std/debug
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
..
Dwarf reintroduce std.Dwarf.abi.supportsUnwinding 2024-08-02 14:15:03 -07:00
Coverage.zig std.debug.Coverage.resolveAddressesDwarf: assert sorted 2024-08-13 19:29:55 -07:00
Dwarf.zig Fix handling of empty XDG environment variables 2024-08-19 23:30:14 -07:00
FixedBufferReader.zig std.debug.Dwarf: precompute .debug_line table 2024-08-07 00:48:32 -07:00
Info.zig std.debug.Coverage.resolveAddressesDwarf: assert sorted 2024-08-13 19:29:55 -07:00
MemoryAccessor.zig std.debug: reorg and clarify API goals 2024-08-01 23:11:59 -07:00
Pdb.zig std.debug: rename Info to SelfInfo 2024-08-01 22:11:35 -07:00
SelfInfo.zig std.debug.Coverage.resolveAddressesDwarf: fix broken logic 2024-08-13 15:02:53 -07:00