Skip to content

Commit

Permalink
Use C.UTF-8 locale instead
Browse files Browse the repository at this point in the history
Listing creation on Ubuntu is failing with

```
tar: Pathname can't be converted from UTF-8 to current locale.
```

Using a locale with UTF-8 support should help.
  • Loading branch information
plobsing committed Nov 22, 2024
1 parent 0a4bba6 commit 41b8d94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tests/tar/asserts.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def assert_tar_listing(name, actual, expected):
srcs = [actual],
testonly = True,
outs = ["_{}.listing".format(name)],
cmd = "LC_ALL=POSIX $(BSDTAR_BIN) -tvf $(execpath {}) >$@".format(actual),
cmd = "LC_ALL=C.UTF-8 $(BSDTAR_BIN) -tvf $(execpath {}) >$@".format(actual),
toolchains = ["@bsd_tar_toolchains//:resolved_toolchain"],
)

Expand Down

0 comments on commit 41b8d94

Please sign in to comment.