Repository navigation
Read manifest preferences as UTF-8 - #219
Merged
Merged
Conversation
The preferences block opened project.json with the locale encoding. Under an ASCII locale a non-ASCII course name raised UnicodeDecodeError, and the block hid the error, so the known preference lines never printed. Co-authored-by: Philippos Savvides <savvides@users.noreply.github.com>
…t-design Review of #219: the same locale-encoding read was in three other inline manifest reads. start reported a valid non-ASCII manifest as invalid; course-import and assessment-design printed an empty MANIFEST_UPDATED, so the merge silently dropped --expect-updated. A smoke check now fails on any inline open() of .idstack/project.json without an encoding. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner
Author
|
Review (Claude Code):
Local: smoke 696/696, integration 81/81, zsh 275/275, preamble-python 11/11, check-doc-accuracy OK, gen-skills --dry-run clean. CI: all green except |
4 tasks done
savvides
added a commit
that referenced
this pull request
Nov 24, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
The preamble preferences block opened
.idstack/project.jsonwith the locale encoding. WithLC_ALL=CandPYTHONUTF8=0, that encoding is ASCII. A UTF-8 course name (for example Café) then madejson.loadraiseUnicodeDecodeError. The block hides the error (except Exception: passand2>/dev/null), soverbosity,export_format,preferred_lmsandauto_advance_pipelinenever printed. The block now opens the file as UTF-8.scripts/idstack-gen-skillsregenerated eachskills/*/SKILL.md. Theste-coreblock did not change, andextension/shared/ste-rules.jsis unchanged.No minor findings. No issue opened. This pull request does not close an issue.
Tests
Before the fix,
./test/test-preamble-python.shon Python 3.12.3:After the fix, same interpreter:
scripts/idstack-gen-skills --dry-runis clean./test/smoke-test.sh(not run)./test/integration-test.sh(not run)