libiconv not found, so character conversion unsupported
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dcmtk (Ubuntu) |
Confirmed
|
Undecided
|
Debian Med |
Bug Description
DCMTK 3.6.1 has an option to use libiconv to support character conversion. It looks like this option is explicitly turned on in the rules file:
-DDCMTK_
However, since the Debian package does not depend on libiconv, it is not found during package build, which is ignored with only a warning:
-- Could NOT find LIBICONV (missing: LIBICONV_LIBRARY)
-- Warning: ICONV support will be disabled because libiconv was not found. Correct LIBICONV_LIBDIR and LIBICONV_
This causes the DCMTK tools to be unable to convert to UTF-8:
(from 'man dcmdump')
+U8 --convert-to-utf8
by Specific Character Set (0008,0005) to UTF-8
# requires support from the libiconv toolkit
$ dcmdump --convert-to-utf8
$dcmtk: dcmdump v3.6.1 2015-09-24 $
dcmdump: Dump DICOM file and data set
error: Unknown option --convert-to-utf8
And in the code, when .convertToUTF8() is called, a 'bad' OFCondition with text "No character encoding library available" is returned.
I would expect, especially considering WITH_ICONV is explicitly enabled, that iconv would be a necessary dependency for the package, and the resulting build is able to use iconv to convert incoming Dicoms to UTF-8.
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: dcmtk 3.6.1~20150924-5
ProcVersionSign
Uname: Linux 4.4.0-83-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.6
Architecture: amd64
CurrentDesktop: XFCE
Date: Tue Jul 4 15:47:31 2017
InstallationDate: Installed on 2015-02-18 (867 days ago)
InstallationMedia: Xubuntu 14.04.1 LTS "Trusty Tahr" - Release amd64 (20140723)
SourcePackage: dcmtk
UpgradeStatus: Upgraded to xenial on 2017-03-02 (124 days ago)
Changed in dcmtk (Ubuntu): | |
assignee: | nobody → Debian Med (debian-med) |
Status changed to 'Confirmed' because the bug affects multiple users.