Skip to content

sync: pin tree dump/load file IO to UTF-8#231

Merged
bjornars merged 1 commit into
novem-code:mainfrom
bjornars:bsn/fix-moji
Jun 5, 2026
Merged

sync: pin tree dump/load file IO to UTF-8#231
bjornars merged 1 commit into
novem-code:mainfrom
bjornars:bsn/fix-moji

Conversation

@bjornars
Copy link
Copy Markdown
Contributor

@bjornars bjornars commented Jun 5, 2026

Path.read_text()/write_text() default to the locale encoding, so
novem --dump/--load could silently mojibake non-ASCII content
(em-dashes, å, …) under a non-UTF-8 locale (e.g. LANG=C). Pin both ends
to utf-8 so the on-disk tree format is canonical regardless of locale.

Path.read_text()/write_text() default to the locale encoding, so
`novem --dump`/`--load` could silently mojibake non-ASCII content
(em-dashes, å, …) under a non-UTF-8 locale (e.g. LANG=C). Pin both ends
to utf-8 so the on-disk tree format is canonical regardless of locale.
@bjornars bjornars merged commit 8089e4d into novem-code:main Jun 5, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants