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 gudge
Recipients akira, christian.heimes, docs@python, gudge, janssen, pitrou
Date 2013-12-29.18:29:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1388341794.11.0.831553684383.issue19940@psf.upfronthosting.co.za>
In-reply-to
Content
Can you please provide some hints on how to handle
http://bugs.python.org/issue19940#msg205860.

The value of format_regex

1) Without locale set:
re.compile('(?P<b>jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)\\s+(?P<d>3[0-1]|[1-2]\\d|0[1-    9]|[1-9]| [1-9])\\s+(?P<H>2[0-3]|[0-1]\\d|\\d):(?P<M>[0-5]\\d|\\d):(?P<S>6[0-1]|[0-5]\\d|\\d)\\s    +(?P<Y>\\d\\d\\d\\d, re.IGNORECASE)

2) With locale set:
re.compile('(?P<b>sty|lut|mar|kwi|maj|cze|lip|sie|wrz|pa\\ź|lis|gru)\\s+(?P<d>3[0-1]|[1-2]\\d|0[    1-9]|[1-9]| [1-9])\\s+(?P<H>2[0-3]|[0-1]\\d|\\d):(?P<M>[0-5]\\d|\\d):(?P<S>6[0-1]|[0-5]\\d|\\d)\    \s+(?P<Y>\\d\\d\\d\, re.IGNORECASE)

The value of months are different.

Thanks
History
Date User Action Args
2013-12-29 18:29:54gudgesetrecipients: + gudge, janssen, pitrou, christian.heimes, docs@python, akira
2013-12-29 18:29:54gudgesetmessageid: <1388341794.11.0.831553684383.issue19940@psf.upfronthosting.co.za>
2013-12-29 18:29:54gudgelinkissue19940 messages
2013-12-29 18:29:53gudgecreate