Package: recode
Version: 3.6-22
Followup-For: Bug #321437

I just tested this with the upcoming 3.7, and it seems to be fixed.

I put the given text in a file foo.txt, then:

$ cat foo.txt|recode "utf8..iso-8859-1"
recode: Invalid input in step `UTF-8..ISO-8859-1'
$ cat foo.txt|recode -f "utf8..iso-8859-1"
Imports System
$ cat foo.txt|recode "utf8..utf16"|recode "utf16..iso-8859-1"
recode: Invalid input in step `UTF-16..ISO-8859-1'
$ cat foo.txt|recode "utf8..utf16"|recode -f "utf16..iso-8859-1"
Imports System

In other words, we now get the same result whether going directly from UTF-8
to ISO-8859-1 or via UTF-16.

-- System Information:
Debian Release: stretch/sid
  APT prefers xenial-updates
  APT policy: (500, 'xenial-updates'), (500, 'xenial-security'), (500, 
'xenial'), (100, 'xenial-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.13.0-26-generic (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages recode depends on:
ii  libc6       2.23-0ubuntu10
ii  librecode0  3.6-22

recode recommends no packages.

recode suggests no packages.

-- no debconf information

Reply via email to