Subject: | Encode::Alias should respect single spaces in encoding names |
Regarding "Since there is no space in encoding names or aliases" from this fix-
sub getEncoding {
...
$name =~ s/\s+//g; # https://rt.cpan.org/Ticket/Display.html?id=65796
Some standards--in my use case, the DICOM standard--do contain spaces: https://www.dabsoft.ch/dicom/3/C.12.1.1.2/
For example, "ISO-IR 126" is analogous to "iso-8859-7". In my view this should work-
define_alias( "ISO-IR 126", "iso-8859-7" );
It's obviously possible to code around with preprocessing the DICOM encoding name but it doesn't seem sensible to me to have to do so. It's trivial to fix and I don't think it will cause a regression of the segfaults from the original ticket-
$name =~ s/\s+/ /g;
THANK YOU for your consideration.