Re: iconv "versions"

Liste des GroupesRevenir à col advocacy 
Sujet : Re: iconv "versions"
De : OFeem1987 (at) *nospam* teleworm.us (Chris Ahlstrom)
Groupes : comp.os.linux.advocacy
Date : 15. Mar 2024, 12:39:04
Autres entêtes
Organisation : None
Message-ID : <ut18g8$27neg$3@dont-email.me>
References : 1 2
User-Agent : slrn/1.0.3 (Linux)
Lawrence D'Oliveiro wrote this copyrighted missive and expects royalties:

On Thu, 14 Mar 2024 16:48:08 -0400, Chris Ahlstrom wrote:
>
So I'm writing code that calls iconv(3), and it's reading a file encoded
in an ISO-8859-1 character set ...
>
Are you sure it was ISO-8859-1, and not, say, Windows-1252?
>
... and it keeps complaining about "invalid multibyte sequence".
>
What exactly was the sequence in question?

Here's an example. The @ indicates the array index of the offending sequence:

    error: po::iconvert: invalid multibyte sequence in: "-Übersetzung" @1

Like I said, the error appears on the Ubuntu laptop, but not on the Arch.
Here are the two versions of iconv, as shown by "iconv --version":

    $ iconv (Ubuntu GLIBC 2.31-0ubuntu9.14) 2.31 (copyright 2020)
    $ iconv (GNU libc) 2.39 (Arch, copyright 2024)

I think the conclusion is logical :-)

--
Wagner's music is better than it sounds.
-- Mark Twain

Date Sujet#  Auteur
5 Oct 24 o 

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal