svn commit: r341775 - in head: Mk/Uses converters/libiconv devel/gettext
Tijl Coosemans
tijl at FreeBSD.org
Fri Jan 31 08:53:27 UTC 2014
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 because
>>> 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.
>>
>> 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.
>
> Just an example:
> # perl -e 'print "\xc1\n";' | iconv -f "ISO8859-15" -t "US-ASCII//TRANSLIT"
> ?
> iconv: warning: invalid characters: 1
> (what ever this warning does here?)
>
> # 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: ī
# perl -e 'print "\xc4\xab\n";' | iconv -f "UTF-8" -t "ISO-8859-15//TRANSLIT"
i
small dutch ij: ij
# perl -e 'print "\xc4\xb3\n";' | iconv -f "UTF-8" -t "ISO-8859-15//TRANSLIT"
ij
More information about the svn-ports-all
mailing list