uutils / uutils/coreutils

date doesn't allow format strings that are not UTF-8

Open
#9,959 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

U - date
Dominant language
Rust
Stars
24.1k
Forks
2k
Avg merge
1d 5h
Merged PRs (30d)
365

Description

GNU:

$ LC_ALL=en_US.ISO-8859-1 date +$(LC_ALL=en_US.ISO-8859-1 printf '\xC2') | iconv --from-code=ISO-8859-1 --to-code=UTF-8
Â

uutils:

$ LC_ALL=en_US.ISO-8859-1 ./target/debug/date +$(LC_ALL=en_US.ISO-8859-1 printf '\xC2') | iconv --from-code=ISO-8859-1 --to-code=UTF-8
error: invalid UTF-8 was detected in one or more arguments

For more information, try '--help'.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with the provided GNU and uutils date commands under ISO-8859-1, then inspect the date command's argument handling and UTF-8 validation. Done means a non-UTF-8 format string is accepted and produces behavior matching GNU's output in the example.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.