]> git.ipfire.org Git - thirdparty/libarchive.git/commit
test_list_item: Do not modify LC_TIME 2648/head
authorTobias Stoeckmann <tobias@stoeckmann.org>
Fri, 30 May 2025 15:33:19 +0000 (17:33 +0200)
committerTobias Stoeckmann <tobias@stoeckmann.org>
Fri, 30 May 2025 15:33:19 +0000 (17:33 +0200)
commit65d0393f24b136560acf5d1acceef9921b507cdd
tree519778507aada2890415f139556fa35804455898
parente70e24a73871e4e23f068c7e556e2cb6106f1f36
test_list_item: Do not modify LC_TIME

Test cases already get a C locale, which is sufficient for this test.
IF LC_TIME was not previously set, the used en_US.UTF-8 would stay
as an environment variable, possibly affecting other test cases.
Since en_US.UTF-8 is not guaranteed to be available, C is a better
choice.

Fixes https://github.com/libarchive/libarchive/issues/2560

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
tar/test/test_list_item.c