GH-54641: [C++] Support locale directives in the vendored strptime on Windows #54656
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.37) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 123 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.289
Diff Size
diff_size
0.288
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #54656"
general
weight: 0.35
pearu
Rationale for this change
On Windows, the vendored musl
strptimedoes not handle%a,%A,%b,%B,%h,%c,%p,%r,%xand%X, because they neednl_langinfo(), which is not available there.What changes are included in this PR?
A C-locale replacement for
nl_langinfo(), restricted to the items the vendoredstrptimeuses, with the values of the POSIX locale.Are these changes tested?
Yes,
TimestampParser.StrptimeLocaleDirectivescovers each of these directives. On Windows it exercises the vendoredstrptime; elsewhere it runs against the systemstrptime.Are there any user-facing changes?
On Windows,
strptimeformats with these directives now parse.AI usage disclosure
Developed with AI assistance (Claude Code): the fix, the test and this description were AI-generated under my direction and reviewed line by line by me. I own and can debug these changes. No copyrighted material is included.