This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: socket_htons does not work under AIX 64-bit
Type: behavior Stage: resolved
Components: Extension Modules Versions: Python 3.1, Python 3.2, Python 2.7
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: BreamoreBoy, john_marshall, skrah
Priority: normal Keywords: easy

Created on 2004-03-23 17:18 by john_marshall, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
socketmodule.c-snip john_marshall, 2004-03-23 17:18 snippets from Modules/socketmodule.c
Messages (3)
msg20297 - (view) Author: John Marshall (john_marshall) Date: 2004-03-23 17:18
The socket tests fail for htons under AIX when Python 
is compiled for 64 bits (OBJECTMODE=64). It seems 
that this is easily (?) fixed if the socket_htons() 
code is modified to be close to the socket_ntohs() 
code in Modules/socketmodule.c. 
 
Please see the attachment for the change I did which 
allows the socketmodule.c to function as expected. 
msg109738 - (view) Author: Mark Lawrence (BreamoreBoy) * Date: 2010-07-09 13:54
Do the socket tests still fail under 64 bit AIX?  If yes could this patch or something similar be applied?  If no please close this issue.
msg109749 - (view) Author: Stefan Krah (skrah) * (Python committer) Date: 2010-07-09 15:18
The proposed change was for socket_htons() to use ints instead of
unsigned longs. This is the case now, so I'm closing the issue.
History
Date User Action Args
2022-04-11 14:56:03adminsetgithub: 40067
2010-07-09 15:18:09skrahsetstatus: open -> closed

nosy: + skrah
messages: + msg109749

resolution: out of date
stage: test needed -> resolved
2010-07-09 13:54:33BreamoreBoysetnosy: + BreamoreBoy

messages: + msg109738
versions: + Python 3.1, Python 2.7, Python 3.2, - Python 2.6
2009-02-14 11:33:01ajaksu2settype: behavior
stage: test needed
2008-01-20 19:09:52christian.heimessetkeywords: + easy
components: + Extension Modules, - Library (Lib)
versions: + Python 2.6, - Python 2.3
2004-03-23 17:18:06john_marshallcreate