Skip to content

Enforce utf8 encoding in sourcegen#1931

Merged
speth merged 2 commits intoCantera:mainfrom
ischoegl:sourcegen-encoding
Jul 23, 2025
Merged

Enforce utf8 encoding in sourcegen#1931
speth merged 2 commits intoCantera:mainfrom
ischoegl:sourcegen-encoding

Conversation

@ischoegl
Copy link
Copy Markdown
Member

@ischoegl ischoegl commented Jul 22, 2025

Changes proposed in this pull request

Unicode characters used in the documentation (e.g., ² in units) cause failures on systems with different default encodings when CLib docstrings are regenerated; enforcing utf8 resolves the issue.

Also, use Python 3.13.3 disable Python 3.13 on macOS 13 to bypass issue #1916 so CLib tests are run.

If applicable, fill in the issue number this pull request is fixing

Closes #1927

If applicable, provide an example illustrating new features this pull request is introducing

Checklist

  • The pull request includes a clear description of this code change
  • Commit messages have short titles and reference relevant issues
  • Build passes (scons build & scons test) and unit tests address code coverage
  • Style & formatting of contributed code follows contributing guidelines
  • The pull request is ready for review

Python 3.13.3, 3.13.4 and 3.13.5 show sporadic failures; see issue Cantera#1916
@ischoegl ischoegl force-pushed the sourcegen-encoding branch from 0527dd1 to 6496597 Compare July 22, 2025 17:56
@ischoegl ischoegl requested review from a team and speth and removed request for speth July 22, 2025 22:38
Copy link
Copy Markdown
Member

@speth speth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. I initially hesitated a bit at the commented-out CI job, but I guess it's better to track that problem via #1916 rather than fighting with it on unrelated PRs.

@speth speth merged commit f22643e into Cantera:main Jul 23, 2025
50 checks passed
@ischoegl ischoegl deleted the sourcegen-encoding branch July 23, 2025 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GBK encoding causes compilation failure in development version

2 participants