Skip to content

Improve handling utf-8 errors#1503

Merged
bcl merged 4 commits intoweldr:rhel10-branchfrom
bcl:rhel10-121650
Feb 6, 2026
Merged

Improve handling utf-8 errors#1503
bcl merged 4 commits intoweldr:rhel10-branchfrom
bcl:rhel10-121650

Conversation

@bcl
Copy link
Copy Markdown
Contributor

@bcl bcl commented Feb 2, 2026

Backport more patches, and ignore utf-8 decode errors.

This allows it to properly handle unicode output from the process that
is being run.

I have been able to reproduce the failure by running lorax in a VM with
a modified runtime-postinstall that calls a python program that outputs
unicode, or with glib2-2.85.3-1.fc43 -- but I am unable to cause it to
fail in the test suite.

(cherry picked from commit 3a53278)

Related: RHEL-121650
This allows unicode to be passed to the logfiles without raising an
error.

(cherry picked from commit 24d17f8)

Related: RHEL-121650
This was never used in lorax, is always set to false, and now with
encoding set to UTF8 for these functions it wouldn't be binary anyway.

Also sets text=True in the _run_program call to startProgram, previously
the old universal_newlines was set from the state of binary_output.

(cherry picked from commit 42786c2)

Related: RHEL-121650
We have no control over the data stream so if what we receive from the
program (anaconda, or whatever) is broken the best we can do is ignore
errors and not crash because of a decode error.

Resolves: RHEL-121650
@bcl bcl merged commit 6364e4e into weldr:rhel10-branch Feb 6, 2026
2 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