Repository navigation
fix(find): %Tq/%TN follow glibc strftime — unbreak engines-find gate shard on main (#1488) - #1858
Merged
Conversation
… engines-find gate shard) find -printf time directives call the C library strftime, not gnulib's nstrftime that date(1) uses. Since the date parity work taught the shared date::strftime the gnulib %q extension, find's %Tq printed the quarter (1) where GNU findutils 4.9.0 / glibc 2.39 echoes %q, failing gate row fd262 and turning the engines-find shard (and main CI) red. %N had the same latent drift. Add gate row fd271 pinning %Tq|%TN|%AN|%Cq against the oracle. Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
caomengxuan666
marked this pull request as draft
November 22, 2026 13:46
caomengxuan666
marked this pull request as ready for review
November 22, 2026 16:50
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes the red
rust2-gate-shards (engines-find)job. It fails on the latestmainrun ofCMake Windows Multi-Arch CI(45014878211). That run's GNU-differential build failure is handled separately by #1857. It is work-queue item 0, broken main, for #1488.Root cause:
find -printfrenders%Ak/%Bk/%Ck/%Tkthrough the shareddate::strftime. The date parity work taught that function the gnulibnstrftimeextension%q(quarter). GNU find calls the C librarystrftimeinstead, and glibc 2.39 has no%qor%N, so it echoes the directive as-is. As a result, gate rowfd262-printf-time-T-namesprinted1where the GNU oracle prints%q.Fix: a new
strftime_letterhelper infind/printf.rsreturns%q/%Nverbatim and forwards every other letter todate::strftime. date(1) keeps its gnulib behaviour.Probe against the WSL oracle (findutils 4.9.0, glibc 2.39), comparing every
%T<letter>from a to z and A to Z: onlyqandNdiffered between rust2 and GNU.Tests
find::printf::tests::time_letters_follow_glibc_strftime.fd271-printf-time-glibc-unknown(%Tq|%TN|%AN|%Cq), added togen-cases.py;find.tsvwas regenerated, but only the find rows were kept.bash rust2/gate/run-gate.sh findlocally:fd262).fd280–fd289fail locally only, because this box has no C++ build (c_rc=127). CI provides the C++ side.cargo test -p winux-cmds --lib find::passes, 26 tests.Note: this VM has no MSVC toolchain, so the local driver was built with the
x86_64-pc-windows-gnutoolchain. CI builds the MSVC driver.i18n
No user-visible strings changed, so
unixwin/winuxcmd-i18nneeds no catalog sync.Refs #1488
Written by Devin