Package: stepic
Version: 0.5.0-1
Severity: normal
Tags: l10n upstream

Dear Maintainer,

I've tried to use stepic command line script
to hide some Cyrillic text in UTF-8 inside a PNG image,
and found out that if stepic correctly encodes it (and this text is decoded 
by older Python2 based version of Stepic from ubuntu xenial),
it fails to decode non-ascii text.

It seems that stepic interprets bytes extracted from image as ISO8859-1
text and converts them to utf-8 before outputing to stdout or writing to 
output file.

Moreover, it does so regardless of current locale settings. 

i have to "convert" stepic output "from utf-8" "to iso8859-1" with iconv 
to get correct UTF-8 text. 

I think that at least when writing output to file stepic should
write bytes extactly as they were extracted from image for they might
be some binary data such as encrypted text.

It is better to not do any encoding conversion event when writing to
stdout.


-- System Information:
Debian Release: 10.7
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-13-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_CRAP
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8), 
LANGUAGE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages stepic depends on:
ii  python3      3.7.3-1
ii  python3-pil  5.4.1-2+deb10u2

stepic recommends no packages.

stepic suggests no packages.

-- no debconf information

Reply via email to