mirror of
https://github.com/reconurge/flowsint.git
synced 2026-07-16 00:52:35 -05:00
[PR #190] [MERGED] fix: read YAML templates as UTF-8 #3562
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/reconurge/flowsint/pull/190
Author: @Ghraven
Created: 6/13/2026
Status: ✅ Merged
Merged: 6/18/2026
Merged by: @dextmorgn
Base:
main← Head:fix/yaml-loader-utf8📝 Commits (1)
38c7a72fix: read YAML templates as UTF-8📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
flowsint-core/src/flowsint_core/templates/loader/yaml_loader.py(+1 -1)📄 Description
What changed
This updates the YAML template loader to open template files with an explicit
encoding="utf-8".Problem
open(filename)depends on the host system's default text encoding. On systems where the default encoding is not UTF-8, YAML templates containing non-ASCII text can fail to load or decode differently than intended.Before / after
Before: template loading used the platform default encoding.
After: template loading consistently reads YAML templates as UTF-8 across platforms.
Verification
AUTH_SECRET=0123456789abcdef0123456789abcdef REDIS_URL=redis://localhost:6379/0 uv run pytest flowsint-core/tests/templates/test_loader.py→ 40 passeduv run python -m compileall flowsint-core/src/flowsint_core/templates/loader/yaml_loader.pygit diff --check🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.