Public bug reported:
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_WITH_ICONV:BOOL=ON \
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_INCLUDE_DIR and re-enable DCMTK_WITH_ICONV.
This causes the DCMTK tools to be unable to convert to UTF-8:
(from 'man dcmdump')
+U8 --convert-to-utf8
convert all element values that are affected
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
ProcVersionSignature: Ubuntu 4.4.0-83.106-generic 4.4.70
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)
** Affects: dcmtk (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug xenial
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1702307
Title:
libiconv not found, so character conversion unsupported
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dcmtk/+bug/1702307/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs