svn commit: r341775 - in head: Mk/Uses converters/libiconv devel/gettext

Tijl Coosemans tijl at FreeBSD.org
Thu Jan 30 12:27:02 UTC 2014


On Thu, 30 Jan 2014 11:29:18 +0100 Gábor Kövesdán wrote:
> On 2014.01.29. 22:44, Andrey Chernov wrote:
>> On 30.01.2014 0:24, Tijl Coosemans wrote:
>>>>   - Add two new arguments to USES=iconv so ports can indicate they use GNU
>>>>     iconv extensions that the base system iconv doesn't support yet:
>>>>     * wchar_t: port uses the special WCHAR_T character conversion.
>>>>     * translit: port uses //TRANSLIT or //IGNORE conversion options.
>>>>     Adding one or both of these arguments makes the port depend on
>>>>     converters/libiconv for now.
>>>>   - Allow installation of converters/libiconv on FreeBSD 10+.
>> Delete-restore loop.
>> What people smoke, replacing gnu iconv with system one without even
>> implementing //TRANSLIT and //IGNORE first?
>> At this stage looks more logical to implement them in the system iconv,
>> rather than to return gnu one back.

That's not an option for users on 10.0 release.

> In fact, system iconv uses //TRANSLIT by default. What it does not 
> implement is the lack of //TRANSLIT. This is conformant to POSIX.

I see.  I don't think we have to implement the lack of //TRANSLIT.
What we do need are //IGNORE and WCHAR_T.  Also, the transliteration
is different.  The example code I was given prints the unicode
character "Ž":

# cat test.php
<?php
print iconv("UTF-8", "ISO-8859-1//TRANSLIT", "\xc5\xbd");
?>
# php test.php
Z

With system iconv this prints "?" and with libiconv "Z".


More information about the svn-ports-all mailing list