Name : perl-Acme-FixIO
| |
Version : 0.02
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : 4.64
| Date : 2024-08-05 18:22:28
|
Group : Development/Libraries/Perl
| Source RPM : perl-Acme-FixIO-0.02-4.64.src.rpm
|
Size : 0.02 MB
| |
Packager : (none)
| |
Summary : Workaround for Windows chcp 65001 UTF-8 output bug
|
Description :
This is the underlying problem: The last octet is repeated when Perl outputs a UTF-8 encoded string in cmd.exe, chcp 65001
Two StackOverflow articles with basically the same problem: http://stackoverflow.com/questions/23416075 and http://stackoverflow.com/questions/25585248.
This is caused by a bug in Windows. When writing to a console set to code page 65001, WriteFile() returns the number of characters written instead of the number of bytes.
Workaround: Inject a binmode(STDOUT, \':unix:encoding(utf8):crlf\') into the perl program.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-A/openSUSE_Tumbleweed/noarch |