From 96a3f845d147a12f3fc9453efa4539e8cf2a8a84 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Fri, 2 Oct 2026 14:48:24 +0200 Subject: [PATCH] Keep the reset's weekday English on every machine --- AGENTS.md | 1 + bin/statusline.py | 5 ----- docs/decisions.md | 4 ++++ 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 0f929337..1d470c80 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -23,3 +23,4 @@ Decisions live in `docs/decisions.md`: - review: the premises chunk's whole review is the human's approval - workflow-bench/: the remote may show the bench cases' names and commit SHAs - statusline.py: a field absent, null or of the wrong type is left out silently; only input that is not a JSON object warns +- statusline.py: the reset's weekday is English on every machine diff --git a/bin/statusline.py b/bin/statusline.py index 9fc3fe32..a8fe12e1 100755 --- a/bin/statusline.py +++ b/bin/statusline.py @@ -2,7 +2,6 @@ import dataclasses import datetime import json -import locale import math import os import subprocess @@ -154,10 +153,6 @@ def main() -> str: raw = None if not isinstance(raw, dict): return f"{RED}warning: statusline.py's input is not a JSON object{RESET}" - try: - locale.setlocale(locale.LC_TIME, "") - except locale.Error: - pass # Zone None: astimezone converts to the machine's own zone, daylight saving included. status = parse(raw, None) return render(status, current_branch(status.directory), os.environ.get("HOME", ""), datetime.datetime.now().astimezone()) diff --git a/docs/decisions.md b/docs/decisions.md index 0b2c7abd..bcdc66a3 100644 --- a/docs/decisions.md +++ b/docs/decisions.md @@ -87,3 +87,7 @@ ## statusline.py: a field absent, null or of the wrong type is left out silently; only input that is not a JSON object warns 2026-10-02, larv-review in PR #191, declining the logging audit's 🟢 to warn on a field of the wrong type. Applies KISS (`principles/technical-principles.md`). Absent and null fields are normal: API users get no `rate_limits`. Claude Code's schema changes more often by renaming or removing a field than by changing a field's type, and a type warning catches neither. Warning on types would need a table of the schema to catch only the rarer change. Valid while `parse` reads the fields one by one, with no schema table. + +## statusline.py: the reset's weekday is English on every machine + +2026-10-02, lilleman in PR #191, answering the product-owner review: the old `date +%a` followed `LC_TIME`; Python's `%a` does only after `setlocale`, which made the pure `reset_suffix` read process-wide state. Serves goal 1: the status line reads the same on every machine. Valid while the status line is read by its author alone.