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.

Author ggodhner
Recipients ezio.melotti, ggodhner, mrabarnett, zach.ware
Date 2016-08-02.22:41:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <007001d1ed0f$0d3bf2e0$27b3d8a0$@net>
In-reply-to <1470172873.18.0.606998605677.issue27669@psf.upfronthosting.co.za>
Content
I'm quite sure it's the same regular expression with the same code.  It was a puzzling bug, and I thought it might take more to track it down than it did.  I tried changing the file encoding on both the code and the data, and found that the problem didn't arise from that, or at least couldn't be fixed that way.  I copied the files to the XP machine via a flash drive, and every copy warned me that the properties for the files were being lost.  Otherwise the files were directly copied between machines.  Are strings stored identically on Windows XP and Windows 7?  If there is some variation in what the ends of strings look like on the two platforms, that might explain the discrepancy.

Since Matthew Barnett reports being unable to reproduce the problem, I'll provide you with the full code and data I've used as a demonstration of the problem.  The INCLUDE and DEFINE lines produce output for both match() and fullmatch() calls on Windows 7, but only for match() calls on Windows XP.

My command line for running this code was: .\test.py
This was run in the directory in which both files are saved.

Of course it's possible that I've missed some other bug in my code that causes these regular expressions to match differently between platforms, but match() and fullmatch() are working the same on both Mac OS and Windows 7.  I will appreciate your comments.

Best regards,

Geoff Odhner

> -----Original Message-----
> From: Zachary Ware [mailto:report@bugs.python.org]
> Sent: Tuesday, August 02, 2016 5:21 PM
> To: geoffrey@odhner.net
> Subject: [issue27669] Bug in re.fullmatch() specific to Windows XP
> 
> 
> Zachary Ware added the comment:
> 
> Since this is not a security issue, 3.4 is in security fix only mode,
> and Windows XP is no longer supported in Python 3.5+, this will not be
> fixed.  Thus, I'm closing the issue.
> 
> However, this is bizarre :).  There is no Windows-version-specific code
> in the re module, so the behavior should be exactly the same between XP
> and 7.  Are you absolutely certain you're using exactly the same
> regular expression with exactly the same input on all three platforms?
> 
> ----------
> nosy: +zach.ware
> resolution:  -> out of date
> stage:  -> resolved
> status: open -> closed
> 
> _______________________________________
> Python tracker <report@bugs.python.org>
> <http://bugs.python.org/issue27669>
> _______________________________________
Files
File name Uploaded
test.py ggodhner, 2016-08-02.22:41:50
test.txt ggodhner, 2016-08-02.22:41:51
History
Date User Action Args
2016-08-02 22:41:52ggodhnersetrecipients: + ggodhner, ezio.melotti, mrabarnett, zach.ware
2016-08-02 22:41:52ggodhnerlinkissue27669 messages
2016-08-02 22:41:51ggodhnercreate