All checks were successful
Zapret source guards / validate (push) Successful in 9s
Found in the final end-to-end test of the freshly compiled packages: the helper refused to
start the engine ("UnicodeEncodeError: 'ascii' ... \xb7") because the preset names carry a
middle dot ("--name=YouTube · видео") and the compiled program ignores PYTHONUTF8; only the
C library's character type changes its file-name/text encoding (reproduced by hand against the
installed helper: PYTHONUTF8=1 fails, LC_ALL=C.UTF-8 works). The three launchers (window,
helper, AppImage AppRun) and the self-restart now also set LC_CTYPE=C.UTF-8. The helper prints
the traceback of an unexpected error to the journal instead of one line in the answer.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
6 lines
346 B
Shell
6 lines
346 B
Shell
#!/bin/sh
|
|
# Started by systemd (zapretgui-helper.service): the same program in its helper role. It refuses to run unless root.
|
|
export PYTHONUTF8=1
|
|
# The compiled program ignores PYTHONUTF8; its file-name and text encoding follow the C library's character type.
|
|
export LC_CTYPE=C.UTF-8
|
|
exec /opt/zapretgui/_internal/zapretgui --zapret-helper "$@"
|