[MacPorts] #68356: libiconv @1.17_0: conversion to UTF8 unsupported
MacPorts
noreply at macports.org
Wed Oct 4 20:27:27 UTC 2023
#68356: libiconv @1.17_0: conversion to UTF8 unsupported
-------------------------+----------------------
Reporter: eric-j-ason | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.8.1
Keywords: | Port: libiconv
-------------------------+----------------------
Converting to or from "UTF8" yields an error, but "UTF-8" works. This is
in contrast to other versions of iconv.
iconv from MacPorts gives an error:
{{{
$ echo hello | /opt/local/bin/iconv --to-code UTF8
iconv: conversion to UTF8 unsupported
iconv: try '/opt/local/bin/iconv -l' to get the list of supported
encodings
}}}
{{{
$ /opt/local/bin/iconv --list | grep --extended-regexp --ignore-case
'UTF-?8'
UTF-8
UTF-8-MAC UTF8-MAC
}}}
{{{
$ /opt/local/bin/iconv --version
iconv (GNU libiconv 1.17)
Copyright (C) 2000-2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Bruno Haible.
}}}
iconv from MacOS gives no error:
{{{
$ echo hello | /usr/bin/iconv --to-code UTF8
hello
}}}
{{{
$ /usr/bin/iconv --list | grep --extended-regexp --ignore-case 'UTF-?8'
UTF-8 UTF8
UTF-8-MAC UTF8-MAC
}}}
{{{
$ /usr/bin/iconv --version
iconv (GNU libiconv 1.11)
Copyright (C) 2000-2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
Written by Bruno Haible.
}}}
iconv on Debian gives no error:
{{{
$ echo hello | /usr/bin/iconv --to-code UTF8
hello
}}}
{{{
$ /usr/bin/iconv --list | grep --extended-regexp --ignore-case 'UTF-?8'
ISO-10646/UTF-8/
ISO-10646/UTF8/
UTF-8//
UTF8//
}}}
{{{
$ /usr/bin/iconv --version
iconv (Debian GLIBC 2.31-13+deb11u7) 2.31
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
Written by Ulrich Drepper.
}}}
This bug was noticed because pdfjam uses iconv and stopped working:
https://github.com/rrthomas/pdfjam/blob/v3.08/bin/pdfjam#L954
https://github.com/rrthomas/pdfjam/blob/v3.08/bin/pdfjam#L975
--
Ticket URL: <https://trac.macports.org/ticket/68356>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list