virtuoso-opensource
virtuoso-opensource copied to clipboard
gethostbyname errors in log for IDN hostnames
I run a Virtuoso instance on https://slovník.gov.cz, including dereferencable IRIs via fct. I keep getting the following errors (tested on https://github.com/openlink/virtuoso-opensource/commit/8baf8a90afc842c52b7d2f44af0ca99c88d85b68) in virtuoso.log:
16:30:50 The function gethostbyname returned error 1 for host "slovnÃk.gov.cz".
16:30:56 The function gethostbyname returned error 1 for host "slovnÃ�Â�Ã�Â�Ã�Â�Ã�Â�Ã�Â�Ã�Â�Ã�Â�Ã�Â�Ã�Â�Ã�Â�Ã�Â�Ã�Â".
16:31:30 The function gethostbyname returned error 1 for host "slovnÃ�Âk.gov.cz".
16:33:26 The function gethostbyname returned error 1 for host "slovnÃk.gov.cz".
16:34:34 The function gethostbyname returned error 1 for host "slovnÃk.gov.cz".
Other than that, the instance seems to be working normally. It seems like another Unicode-based problem.
The main problem is that functions like gethostbyname cannot perform lookups on hostnames with embedded unicode characters.
I am working on a new function that will do lookups that include IDN translation instead.
I will give you a heads-up once the patch is ready for testing.