Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Jan 2014 09:53:00 +0100
From:      Tijl Coosemans <tijl@FreeBSD.org>
To:        Andrey Chernov <ache@freebsd.org>
Cc:        =?ISO-8859-1?Q?G=E1bor_K=F6vesd=E1n?= <gabor@kovesdan.org>, svn-ports-head@freebsd.org, svn-ports-all@freebsd.org, ports-committers@freebsd.org
Subject:   Re: svn commit: r341775 - in head: Mk/Uses converters/libiconv devel/gettext
Message-ID:  <20140131095300.2bbe5c18@kalimero.tijl.coosemans.org>
In-Reply-To: <52EADC32.6050206@freebsd.org>
References:  <201401292024.s0TKOomF031237@svn.freebsd.org> <52E97640.5020703@freebsd.org> <52EA297E.6030607@kovesdan.org> <20140130132652.5d945d44@kalimero.tijl.coosemans.org> <52EA862C.30201@freebsd.org> <20140130225350.5260dc47@kalimero.tijl.coosemans.org> <52EAD9BC.4060707@freebsd.org> <52EADC32.6050206@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 31 Jan 2014 03:11:46 +0400 Andrey Chernov wrote:
> On 31.01.2014 3:01, Andrey Chernov wrote:
>>> And lack of //TRANSLIT isn't as bad as I initially thought it was becau=
se
>>> system iconv does transliteration by default.  It's just that the output
>>> is not as good as with libiconv.  The examples so far only involve ASCII
>>> and ISO-8859-1.  I do seem to get good transliteration with ISO-8859-15.
>>=20
>> Transliteration by converting everything to '?' (that's all I got in my
>> testings with several charsets, including 8859-15) means transliteration
>> is simple not working, it isn't 'not as good as'. Despite of false
>> claims in the system iconv code, see just a definition of
>> transliteration term.
>=20
> Just an example:
> # perl -e 'print "\xc1\n";' | iconv -f "ISO8859-15" -t "US-ASCII//TRANSLI=
T"
> ?
> iconv: warning: invalid characters: 1
> (what ever this warning does here?)
>=20
> # perl -e 'print "\xc1\n";' | /usr/local/bin/iconv -f "ISO8859-15" -t "US=
-ASCII//TRANSLIT"
> 'A

These still involve US-ASCII.  Try these:

small i with macron: =C4=AB
# perl -e 'print "\xc4\xab\n";' | iconv -f "UTF-8" -t "ISO-8859-15//TRANSLI=
T"
i

small dutch ij: =C4=B3
# perl -e 'print "\xc4\xb3\n";' | iconv -f "UTF-8" -t "ISO-8859-15//TRANSLI=
T"
ij




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140131095300.2bbe5c18>