|
From: | Thomas Dickey |
Subject: | Re: [Lynx-dev] lynx iconv for Solaris |
Date: | Thu, 25 Dec 2008 09:11:27 -0500 (EST) |
On Thu, 25 Dec 2008, Thomas Dickey wrote:
@@ -952,6 +952,20 @@ int UCTransUniCharStr(char *outbuf, HTSprintf0(&tocode, "%s//TRANSLIT", LYCharSet_UC[charset_out].MIMEname); cd = iconv_open(tocode, "UTF-16BE"); FREE(tocode) + if (cd == (iconv_t)-1) { + HTSprintf0(&tocode, "%s", LYCharSet_UC[charset_out].MIMEname);I'm puzzled here - since TRANSLIT is less stringent, I would expect that the check would be first made on the exact translation rather than on the transliteration. Any comments?
looking a little further, I see that the issue is that TRANSLIT is a glibc extension, so it's tried first in case it works. (google didn't show much comment about whether it's more/less likely to succeed than the plain POSIX version). -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net
[Prev in Thread] | Current Thread | [Next in Thread] |