Comment 6 for bug 618868

Revision history for this message
Michel Leunen (michel-leunen) wrote : Re: sysmonitor screenlet fails to find the computer's IP address

My analysis of the problem was quite weak, sorry On MY machine, ifconfig still returns "inet adr" with only one "d".
Actually, the problem is a problem of locale. In your english ( I presume) version, it has two "d" but in mine which is a french version of Maverick, "inet adr" has only one "d".
What is the best way to test a string taking into account the user's locale ? Besides, what if you have two valid connections ? A wired one and a wireless one ? The function used only returns the first "inet addr" found in ifconfig. I suppose Julien will have to change the algorithm he used.