Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set unicode-aware locale in containers #4289

Merged
merged 1 commit into from
Jan 22, 2025

Conversation

HebaruSan
Copy link
Member

Problem

The metadata for Skopos has ?? in the abstract where non-ASCII characters are provided by the GitHub API:

Notably, this does not happen for me locally.

Cause

The LANG environment variable is not set in the Inflator's container, so unicode characters are not handled properly. I have it set to en_US.utf-8, the latter part of which enables unicode.

Changes

Now our Dockerfiles set LANG to C.utf-8 to enable unicode support. This is also the value used in the bot's Python-based containers. This causes UTF-8 strings from the GitHub API to be faithfully recorded into the metadata.

Fixes #4288.

@HebaruSan HebaruSan added Bug Something is not working as intended Easy This is easy to fix Netkan Issues affecting the netkan data Infrastructure Issues affecting everything around CKAN (the GitHub repos, build process, CI, ...) labels Jan 22, 2025
@HebaruSan HebaruSan merged commit c861463 into KSP-CKAN:master Jan 22, 2025
3 checks passed
@HebaruSan HebaruSan deleted the fix/container-locales branch January 22, 2025 23:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is not working as intended Easy This is easy to fix Infrastructure Issues affecting everything around CKAN (the GitHub repos, build process, CI, ...) Netkan Issues affecting the netkan data
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Abstracts from GitHub API replace non-ASCII characters with question marks
1 participant