Subject: | typo in documentation |
Distribution name: cyrillic-1.05
perl: v5.8.4 built for i386-linux-thread-multi
operating system: Debian/GNU Linux 3.0r6
Recently I install this package to my system.
Reading documentation, I see:
man Convert::Cyrillic:
..[skip]..
Where $Src and $Dst are one of:
KOI8 - for KOI8-R
WIN - for WIN-1251
DOS - for DOS, alternative, CP-866
MAC - for Macintosh
ISO - for ISO-8859-5
UTF-8 - for UTF-8 (Unicode)
VOL - for Volapuk (transliteration)
..[skip]..
So, I try to convert string from UTF-8 to KOI-R using this command:
$string_koi = Convert::Cyrillic::cstocs ('UTF-8', 'KOI8', $string_utf);
and I have error. Trying to solve this error, I see at
/usr/share/perl5/Convert/Cyrillic.pm at lines 47 and 54 -
..[skip]..
$Src eq 'UTF8'
..[skip]..
$Dst eq 'UTF8'
..[skip]..
So, I must rewrite my convert string to
$string_koi = Convert::Cyrillic::cstocs ('UTF8', 'KOI8', $string_utf);
and all works fine.
So, please, correct the documentation, change "UTF-8" to "UTF8" in "Description" section of manpage.
Thank you,
WBW, Vadim Kutchin