Neven, > A C program is in the "C" locale already when it reaches the main > function, so I think there's no point to calling it again. ah, thanks. i didn't know that. with the new "C.UTF-8", possibly it makes sense to try falling back to that locale (after "" fails), before defaulting to the "C" locale? cheers, Greg