# std: fix path joining on UEFI · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/41fd343508880ffdfbc83c7b053237da09199f02)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 41fd343508880ffdfbc83c7b053237da09199f02

Requested commit: 41fd343508880ffdfbc83c7b053237da09199f02

Commit: 41fd343508880ffdfbc83c7b053237da09199f02

Tree: 2bbc476dbc114f7c762430d95d1470ad0dfcd8a9

Author: fifty-six

Committer: Andrew Kelley

## Message

```
std: fix path joining on UEFI

UEFI uses `\` for paths exclusively. This changes std.fs.path to use `\`
for UEFI path joining. Also adds a few tests regarding it, specifically
in making sure double-separators do not result from path joining, as the
UEFI spec says to convert any that result from joining into single
separators (UEFI Spec Version 2.7, pg. 448).

```

## Parents

- [f4b3f1d6022265992f87cea1d9591ffa8ec226d6](https://git.cafe/gitcafe/zig/commit/f4b3f1d6022265992f87cea1d9591ffa8ec226d6?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/41fd343508880ffdfbc83c7b053237da09199f02?format=markdown)
