virtuoso-opensource icon indicating copy to clipboard operation
virtuoso-opensource copied to clipboard

gethostbyname errors in log for IDN hostnames

Open jakubklimek opened this issue 4 years ago • 1 comments

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.

jakubklimek avatar May 03 '21 14:05 jakubklimek

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.

openlink avatar Jun 09 '21 07:06 openlink