Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Nov 2018 01:52:44 +0000
From:      bugzilla-noreply@freebsd.org
To:        gnome@FreeBSD.org
Subject:   [Bug 233252] converters/iconv: different output on Linux
Message-ID:  <bug-233252-6497-KxeDwEkRXX@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-233252-6497@https.bugs.freebsd.org/bugzilla/>
References:  <bug-233252-6497@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D233252

--- Comment #4 from Jan Beich <jbeich@FreeBSD.org> ---
(In reply to Pascal Christen from comment #0)
> As you can see, on BSD some characters are with ' or " and on Linux it's
> just as expected when using TRANSLIT. Any ideas?

iconv() from GNU libc (unlike GNU libiconv) transliterates based on locale
data. To do the same on FreeBSD you may need ICU e.g.,

$ pkg install icu
$ echo "=C3=98rn=C3=A6r=C3=A9j=C3=B6" | uconv -f utf-8 -x ascii
Ornaerejo

(In reply to Pascal Christen from comment #2)
> $ echo '=C3=98rn=C3=A6r=C3=A9j=C3=B6' | /usr/bin/iconv -f utf-8 -t ascii/=
/TRANSLIT
> ?rn?r?j?
> iconv: warning: invalid characters: 4

//TRANSLIT is not supported by iconv() from base. Ports that depend on it
should define USES=3Diconv:translit and adjust CONFIGURE_ARGS (or similar) =
to use
GNU libiconv symbols instead. How to switch to ICU for better transliterati=
on
support doesn't appear to be documented.

https://www.freebsd.org/doc/en/books/porters-handbook/using-iconv.html
https://www.freebsd.org/doc/en/books/porters-handbook/uses-iconv.html

(In reply to Pascal Christen from comment #0)
> I asked the same question on the mailing-list without any response

freebsd-bugs@ mailing list is filled with bugzilla notifications, so regular
questions are often lost in the noise. Better try freebsd-questions@ or pic=
k a
more specific one but activity may vary.

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-233252-6497-KxeDwEkRXX>