Package: libclamav-client-perl Version: 0.11-2 Severity: normal File: ClamAV::Client
Dear Mantainer Thank you for this helpfull package. I use the ClamAV::Client as part of an email processing script. This script uses MIME::Tools to extract attachements from emails guess their file names and save them to disk. This is when I call scan_path($path); $path containing the filename returned by MIME::Tools. The file is created by perl 'open' right before calling scan_path($path): binmode STDOUT, ":utf8"; open(FILE,">$path"); print FILE $attachment; close(FILE); my ($path,$found) = $av->scan_path($path); I believe, MIME::Tools returns an utf-8 string as filename. I suppose 'open' correctly converts this utf-8 filename to a binary string as Unix does not care about filename encoding. Unfortunately scan_path does not seem to do this conversion and does not find a file with utf-8 characters created this way. So this is a feature request to make scan_path correctly handle filename charset. -BenoƮt- -- System Information: Debian Release: 10.2 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable') Architecture: i386 (i686) Kernel: Linux 4.19.0-6-686-pae (SMP w/2 CPU cores) Locale: LANG=de_CH.UTF-8, LC_CTYPE=de_CH.UTF-8 (charmap=UTF-8), LANGUAGE=de_CH:de_DE:de:en_GB:en (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages libclamav-client-perl depends on: ii liberror-perl 0.17027-2 ii perl 5.28.1-6 libclamav-client-perl recommends no packages. Versions of packages libclamav-client-perl suggests: ii clamav-daemon 0.101.4+dfsg-0+deb10u1 -- no debconf information

