Skip to content

date: allow non-utf8 path for --reference - #14558

Open
cakebaker wants to merge 1 commit into
uutils:mainfrom
cakebaker:date_reference_non_utf8
Open

cakebaker wants to merge 1 commit into
uutils:mainfrom
cakebaker:date_reference_non_utf8

Conversation

@cakebaker

Copy link
Copy Markdown
Contributor

This PR allows paths with non-utf8 characters for --reference to match the behavior of GNU date.

@cakebaker
cakebaker force-pushed the date_reference_non_utf8 branch from 4dec7f1 to 408e0d4 Compare September 14, 2026 13:29
@cakebaker
cakebaker force-pushed the date_reference_non_utf8 branch from 408e0d4 to a5863e8 Compare September 14, 2026 13:34
sylvestre added a commit to sylvestre/coreutils-1 that referenced this pull request Sep 17, 2026
Nothing covered passing --reference a file name that is not valid in the
current locale, which is fine since the name is passed through to stat
as-is.
Identified here:  uutils/coreutils#14558

* tests/date/reference.sh: Add a test case, skipped when the file system
rejects such a name.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant