You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
doctor, run: a non-ASCII remote name never matches require_up_to_date under an ASCII locale #146
With require_up_to_date = "oré/main" and a remote named oré, doctor says the repository has no such remote when Python's locale is ASCII, although the remote exists.
Linux (WSL2), git 2.x, uvx, Python 3.13 with an ASCII locale and no UTF-8 mode (LC_ALL=C PYTHONUTF8=0 PYTHONCOERCECLOCALE=0, the environment of #115 and #130)
Expected: ok up-to-date: oré/main is on the remote oré (what the same command prints under `LC_ALL=C.UTF-8`). Actual: `fail up-to-date: or?/main: the repository has no remote named `or?, rc=1. The config value is decoded as UTF-8 while git remote output is decoded with the locale (main) or the file system encoding with surrogateescape (#135), so the two strings differ; run refuses a trailer push for the same reason.
Triage: a bug in code on main. Existing specs already say a configured require_up_to_date remote that exists is accepted; only the decoding differs between config and git remote output. No spec change. → turn:build. Outside the 0.1.0 milestone. Related: #135 (its decoding of git output), #144, #145.
Folded into #151 (one text policy for every command). This issue is now blocked by it and closes with its implementation; the reproduction here becomes a scenario of that change.
Fixed by #154 (change 151-text-encoding-policy, merged at f18626d). Checked on main: your reproduction under LC_ALL=C PYTHONUTF8=0 PYTHONCOERCECLOCALE=0 now prints ok up-to-date: …/main is on the remote … and rc=0 (the ? is only the ASCII stdout replacing é). Covered by the scenarios in openspec/specs/text-encoding/spec.md and tests/integration/text_encoding_spec.py.
Activity
cogc-factory commentedon Oct 13, 2026
Triage: a bug in code on
main. Existing specs already say a configuredrequire_up_to_dateremote that exists is accepted; only the decoding differs between config andgit remoteoutput. No spec change. →turn:build. Outside the 0.1.0 milestone. Related: #135 (its decoding of git output), #144, #145.— bruce-lee
cogc-factory commentedon Oct 13, 2026
Folded into #151 (one text policy for every command). This issue is now blocked by it and closes with its implementation; the reproduction here becomes a scenario of that change.
— bruce-lee
docs(151-text-encoding-policy): specify one text-encoding policy for …
docs(151-text-encoding-policy): specify one text-encoding policy for …
docs(151-text-encoding-policy): specify one text-encoding policy for …
fix(151-text-encoding-policy): run the integration specs in a hostile…
fix(151-text-encoding-policy): run the integration specs in a hostile…
fix(151-text-encoding-policy): run the integration specs in a hostile…
fix(151-text-encoding-policy): run the integration specs in a hostile…
docs(151-text-encoding-policy): specify one text-encoding policy for …
fix(151-text-encoding-policy): run the integration specs in a hostile…
fix(151-text-encoding-policy): run the integration specs in a hostile…
docs(151-text-encoding-policy): specify one text-encoding policy for …
fix(151-text-encoding-policy): run the integration specs in a hostile…
fix(151-text-encoding-policy): run the integration specs in a hostile…
docs(151-text-encoding-policy): specify one text-encoding policy for …
fix(151-text-encoding-policy): run the integration specs in a hostile…
cogc-factory commentedon Oct 14, 2026
Fixed by #154 (change
151-text-encoding-policy, merged at f18626d). Checked on main: your reproduction underLC_ALL=C PYTHONUTF8=0 PYTHONCOERCECLOCALE=0now printsok up-to-date: …/main is on the remote …and rc=0 (the?is only the ASCII stdout replacing é). Covered by the scenarios inopenspec/specs/text-encoding/spec.mdandtests/integration/text_encoding_spec.py.— bruce-lee