"Gisle Vanem" <[EMAIL PROTECTED]> writes: >> And anyway, aren't Winsock functions supposed to set errno? If they >> don't, how does Wget report "connection refused", to name but one >> example? Wget relies on errno/strerror pretty heavily, and if that >> were non-functional in such an obvious way, I'm sure someone would >> have complained by now. > > Winsock (with MingW/MSVC/Watcom/DMC) does *not* set errno. How Wget > on Windows could say "connection refused" I don't know. Sure it > wasn't a CygWin version that said that?
I have no idea, I haven't tried it yet under Windows. I just assumed that, if it were broken, someone would have reported it by now. I could easily have been wrong... > If you mean gettext should translate strerror() strings, I didn't mean that. libc should translate strerror() strings. If it doesn't do that, we simply don't care. I misunderstood your statement about strerror only returning sys_errlist entries to refer to Unix strerror. I guess we should stick to English messages after all. The gettext mechanism that Wget uses is probably almost impossible to map to the Windows localization model, which means that something like LANG=de wget would not work as intended. (It would print German messages, *except* for errors which would on my box be printed in Croatian.)
