After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 749912 - g_inet_address_new_from_string broken on XP/2003
g_inet_address_new_from_string broken on XP/2003
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: gio
2.45.x
Other Windows
: Normal major
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2015-05-26 15:07 UTC by Wouter Paesen
Modified: 2015-08-07 13:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed fix (1.20 KB, patch)
2015-05-26 15:09 UTC, Wouter Paesen
none Details | Review
Fix a FIXME in the WinXP inet_pton() implementation (2.52 KB, patch)
2015-06-09 13:20 UTC, Dan Winship
none Details | Review

Description Wouter Paesen 2015-05-26 15:07:56 UTC
Since introduction of bug 730352, g_inet_address_new_from_string produces a GInetAddress instance that does not correspond to the given string.
Comment 1 Wouter Paesen 2015-05-26 15:09:22 UTC
Created attachment 304024 [details] [review]
Proposed fix
Comment 2 Dan Winship 2015-06-09 13:20:58 UTC
Created attachment 304858 [details] [review]
Fix a FIXME in the WinXP inet_pton() implementation

=====

Can you verify that this patch works as well? (on top of your existing
patch, not instead of it)
Comment 3 Wouter Paesen 2015-06-25 19:01:53 UTC
ACK, it also works in that case.
Comment 4 Dan Winship 2015-06-29 14:49:32 UTC
Attachment 304858 [details] pushed as f9af40a - Fix a FIXME in the WinXP inet_pton() implementation
Comment 5 Nicola 2015-07-03 06:28:00 UTC
can this patch be backported to 2.44 branch? thanks
Comment 6 Dan Winship 2015-07-19 11:23:47 UTC
(In reply to Nicola from comment #5)
> can this patch be backported to 2.44 branch? thanks

already done (675dbae3)
Comment 7 Nicola 2015-07-19 11:30:52 UTC
the second patch (the one you did) is missing in 2.44 branch, I pushed both to cerbero

http://cgit.freedesktop.org/gstreamer/cerbero/commit/?id=3021ad7f0c6cc33be424d5fbc95fa07812547fb1

and some gstreamer windows users confirmed that glib works fine on xp too, can you please push the second patch too?
Comment 8 Dan Winship 2015-07-19 13:23:48 UTC
That patch was just a code cleanup. Chun-wei's patch should fix the actual bug by itself.
Comment 9 Fan, Chun-wei 2015-07-20 03:20:57 UTC
Hi Dan,

I think we still need the second patch in 2.44 (or at least have the g_hostname_is_ip_address() check in there), as my patch did not (yet) deal with the non-IP-address case (hence the XXX/Fixme) was still there, especially as 2.44 would be the last stable release series to support XP.  

I was trying to figure out the XXX/Fixme part myself, and did not realise the g_hostname_is_ip_address() part and was trying to go the long, long way :|.

With blessings, thank you!
Comment 10 Dan Winship 2015-08-07 13:40:02 UTC
(In reply to Fan, Chun-wei from comment #9)
> I think we still need the second patch in 2.44

ok, cherry-picked and pushed