Change internal function name from getline to getlineLocal. It was conflicting
with a system function of the same name.